1. Bruce Kroeze
  2. django-livesettings

Commits

Hynek Cernoch  committed c2cdfdf

Updated settings of test_app more to Django 1.3/1.2

  • Participants
  • Parent commits 1afb3b1
  • Branches default

Comments (0)

Files changed (2)

File livesettings/test_app/settings.py

View file
 TEMPLATE_LOADERS = (
     'django.template.loaders.filesystem.Loader',
     'django.template.loaders.app_directories.Loader',
-#     'django.template.loaders.eggs.load_template_source',
+#     'django.template.loaders.eggs.Loader',
 )
 
 MIDDLEWARE_CLASSES = (
     "django.middleware.common.CommonMiddleware",
     "django.contrib.sessions.middleware.SessionMiddleware",
+    #"django.middleware.csrf.CsrfViewMiddleware",  # views in livesettings have enabled CSRF regardless of this setting
     "django.middleware.locale.LocaleMiddleware",
     "django.contrib.auth.middleware.AuthenticationMiddleware",
     "django.contrib.messages.middleware.MessageMiddleware",

File livesettings/test_app/urls.py

View file
-from django.conf.urls.defaults import patterns, include
+from django.conf.urls.defaults import *
+# Imported '*' because Django 1.2 requires importing handler404+500 in the main
+# urls or have customized their templates. Django 1.3 does not require it.
 from django.contrib import admin
 
 admin.autodiscover()