django1/django/conf/project_template/settings/admin.py

19 lines
570 B
Python
Raw Normal View History

# Django settings for {{ project_name }} project admin site.
from main import *
TEMPLATE_DIRS = (
# Put strings here, like "/home/html/django_templates".
)
ROOT_URLCONF = '{{ project_name }}.settings.urls.admin'
MIDDLEWARE_CLASSES = (
'django.middleware.sessions.SessionMiddleware',
'django.middleware.admin.AdminUserRequired',
'django.middleware.common.CommonMiddleware',
)
# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
# trailing slash.
# Examples: "http://foo.com/media/", "/media/".
ADMIN_MEDIA_PREFIX = '/media/'