Permalink
Browse files

typical django 1.9 updates

  • Loading branch information...
igorkramaric committed Dec 28, 2015
1 parent cbdab04 commit bb4aa5a57d554c24fd2cf6ed140b52b1dd70dc9c
Showing with 25 additions and 10 deletions.
  1. +25 −10 test_project/settings.py
View
@@ -5,7 +5,6 @@
sys.path.insert(0, os.path.join(PROJECT_ROOT, '..'))
DEBUG = True
-TEMPLATE_DEBUG = DEBUG
SECRET_KEY = "thisIsTotallyASecretJkLolHaHa!1!!1!"
@@ -20,30 +19,46 @@
}
}
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
-# 'django.template.loaders.eggs.Loader',
-)
-MIDDLEWARE_CLASSES = (
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.debug',
+ 'django.template.context_processors.request',
+ 'django.contrib.auth.context_processors.auth',
+ 'django.contrib.messages.context_processors.messages',
+ ],
+ 'loaders': [
+ "django.template.loaders.filesystem.Loader",
+ "django.template.loaders.app_directories.Loader",
+ ],
+ 'debug': True,
+ },
+ },
+]
+
+MIDDLEWARE_CLASSES = [
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
-)
+]
ROOT_URLCONF = 'test_project.urls'
SITE_ID = 1
-INSTALLED_APPS = (
+INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'badges',
'badges_tests',
-)
+]

0 comments on commit bb4aa5a

Please sign in to comment.