diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-06-16 11:14:10 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-06-16 11:14:10 +0100 |
commit | 4c44a504edbfe55b023cfc810ee73109a45738bd (patch) | |
tree | d24e0e5986b9d8f790d4b0b31859612706b5fa98 /settings.py | |
parent | 453af2851b72e495733f023fe443e368017c8452 (diff) | |
download | troggle-4c44a504edbfe55b023cfc810ee73109a45738bd.tar.gz troggle-4c44a504edbfe55b023cfc810ee73109a45738bd.tar.bz2 troggle-4c44a504edbfe55b023cfc810ee73109a45738bd.zip |
preparing for django 1.8
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/settings.py b/settings.py index 513fc66..9cbb598 100644 --- a/settings.py +++ b/settings.py @@ -31,9 +31,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Django settings for troggle project. DEBUG = True -TEMPLATE_DEBUG = DEBUG -ALLOWED_HOSTS = ['expo.survex.com'] +ALLOWED_HOSTS = ['expo.survex.com','localhost', '127.0.0.1'] ADMINS = ( # ('Your Name', 'your_email@domain.com'), @@ -96,12 +95,14 @@ SMART_APPEND_SLASH = True # Make this unique, and don't share it with anybody. SECRET_KEY = 'a#vaeozn0)uz_9t_%v5n#tj)m+%ace6b_0(^fj!355qki*v)j2' +TEMPLATES = [{}] +TEMPLATE_DEBUG = DEBUG + # List of callables that know how to import templates from various sources. TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ) - authmodule = 'django.contrib.auth.context_processors.auth' TEMPLATE_CONTEXT_PROCESSORS = ( authmodule, "core.context.troggle_context", ) @@ -112,12 +113,8 @@ INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', -# 'django.contrib.sites', -# 'django.contrib.redirects', 'django.contrib.messages', 'django.contrib.staticfiles', -# 'django_extensions', -# 'tinymce', # 'registration', 'troggle.profiles', 'troggle.core', @@ -128,7 +125,6 @@ MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', -# 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', |