from django.conf import global_settings
DEBUG = True
-TEMPLATE_DEBUG = DEBUG
DEBUG_TOOLBAR = True
PROJECT_DIR = os.path.normpath(os.path.dirname(os.path.dirname(__file__)))
# List of finder classes that know how to find static files in
# various locations.
-STATICFILES_FINDERS = global_settings.STATICFILES_FINDERS + \
- ('gadjo.finders.XStaticFinder',)
+STATICFILES_FINDERS = list(global_settings.STATICFILES_FINDERS) + \
+ ['gadjo.finders.XStaticFinder']
# Make this unique, and don't share it with anybody.
SECRET_KEY = '(jwx-1y#d#vps93glikirr&tq_!^_4g+9-qj(jy#l=sllqw(^j'
-# 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',
-# 'django.template.loaders.eggs.Loader',
-)
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [
+ os.path.join(PROJECT_PATH, 'panikdb', 'templates'),
+ ],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.contrib.auth.context_processors.auth',
+ 'django.template.context_processors.debug',
+ 'django.template.context_processors.i18n',
+ 'django.template.context_processors.media',
+ 'django.template.context_processors.static',
+ 'django.template.context_processors.tz',
+ 'django.contrib.messages.context_processors.messages',
+ 'panikdb.context_processors.internal_ip',
+ ],
+ },
+ },
+]
+
+
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'panikdb.wsgi.application'
-TEMPLATE_DIRS = (
- os.path.join(PROJECT_PATH, 'panikdb', 'templates'),
-)
-
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
JSON_CELL_TYPES = {}
-TEMPLATE_CONTEXT_PROCESSORS = global_settings.TEMPLATE_CONTEXT_PROCESSORS + \
- ('panikdb.context_processors.internal_ip',)
-
FILE_UPLOAD_DIRECTORY_PERMISSIONS = 0o755
FILE_UPLOAD_PERMISSIONS = 0o644