Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Small changes to djangoproject.com admin settings

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3006 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 69a440f0ce726ee21e8a886ca6c2f7fd53c2e243 1 parent 771721b
root authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 django_website/settings/admin.py
8 django_website/settings/admin.py
View
@@ -3,15 +3,19 @@
PREPEND_WWW = False
TEMPLATE_DIRS = (
'/home/html/templates/admin.djangoproject.com/',
- '/home/html/templates/shared-admin/',
+# '/home/html/templates/shared-admin/',
)
+INSTALLED_APPS = INSTALLED_APPS + ('django.contrib.admin',)
ROOT_URLCONF = 'django_website.settings.urls.admin'
MIDDLEWARE_CLASSES = (
'django.middleware.sessions.SessionMiddleware',
- 'django.middleware.admin.AdminUserRequired',
'django.middleware.common.CommonMiddleware',
)
ADMIN_FOR = (
'django_website.settings.main',
)
ADMIN_MEDIA_PREFIX = '/m/'
+TEMPLATE_LOADERS = (
+ 'django.core.template.loaders.filesystem.load_template_source',
+ 'django.core.template.loaders.app_directories.load_template_source',
+)
Please sign in to comment.
Something went wrong with that request. Please try again.