mirror of https://github.com/zulip/zulip.git
Don't hardcode a full path to TEMPLATE_DIRS, so it can be deployed anywhere.
(imported from commit 35deb40218d1626d38e00924a787234ec13732e3)
This commit is contained in:
parent
80a47ca2bc
commit
39f5bb609a
|
@ -1,4 +1,5 @@
|
||||||
# Django settings for humbug project.
|
# Django settings for humbug project.
|
||||||
|
import os
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
TEMPLATE_DEBUG = DEBUG
|
TEMPLATE_DEBUG = DEBUG
|
||||||
|
@ -43,9 +44,9 @@ USE_L10N = True
|
||||||
# If you set this to False, Django will not use timezone-aware datetimes.
|
# If you set this to False, Django will not use timezone-aware datetimes.
|
||||||
USE_TZ = True
|
USE_TZ = True
|
||||||
|
|
||||||
# Absolute filesystem path to the directory that will hold user-uploaded files.
|
SITE_ROOT = os.path.realpath(os.path.dirname(__file__))
|
||||||
# Example: "/home/media/media.lawrence.com/media/"
|
TEMPLATE_DIRS = ( os.path.join(SITE_ROOT, '..', 'templates'),)
|
||||||
MEDIA_ROOT = ''
|
print TEMPLATE_DIRS
|
||||||
|
|
||||||
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
||||||
# trailing slash.
|
# trailing slash.
|
||||||
|
@ -102,13 +103,6 @@ ROOT_URLCONF = 'humbug.urls'
|
||||||
# Python dotted path to the WSGI application used by Django's runserver.
|
# Python dotted path to the WSGI application used by Django's runserver.
|
||||||
WSGI_APPLICATION = 'humbug.wsgi.application'
|
WSGI_APPLICATION = 'humbug.wsgi.application'
|
||||||
|
|
||||||
TEMPLATE_DIRS = (
|
|
||||||
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
|
||||||
# Always use forward slashes, even on Windows.
|
|
||||||
# Don't forget to use absolute paths, not relative paths.
|
|
||||||
'/Users/jesstess/dev/humbug/templates',
|
|
||||||
)
|
|
||||||
|
|
||||||
INSTALLED_APPS = (
|
INSTALLED_APPS = (
|
||||||
'django.contrib.auth',
|
'django.contrib.auth',
|
||||||
'django.contrib.contenttypes',
|
'django.contrib.contenttypes',
|
||||||
|
|
Loading…
Reference in New Issue