mirror of
https://github.com/jazzband/django-authority.git
synced 2026-03-16 22:20:28 +00:00
88 lines
2.3 KiB
Python
88 lines
2.3 KiB
Python
import os
|
|
|
|
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
|
|
|
|
ADMINS = (
|
|
# ('Your Name', 'your_email@domain.com'),
|
|
)
|
|
|
|
MANAGERS = ADMINS
|
|
|
|
DATABASE_ENGINE = 'sqlite3'
|
|
DATABASE_NAME = os.path.join(PROJECT_ROOT, 'example.db')
|
|
DATABASE_USER = ''
|
|
DATABASE_PASSWORD = ''
|
|
DATABASE_HOST = ''
|
|
DATABASE_PORT = ''
|
|
|
|
TIME_ZONE = 'America/Chicago'
|
|
|
|
LANGUAGE_CODE = 'en-us'
|
|
|
|
# Absolute path to the directory that holds media.
|
|
# Example: "/home/media/media.lawrence.com/"
|
|
MEDIA_ROOT = os.path.join(PROJECT_ROOT, 'media')
|
|
|
|
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
|
|
# trailing slash if there is a path component (optional in other cases).
|
|
# Examples: "http://media.lawrence.com", "http://example.com/media/"
|
|
MEDIA_URL = '/media/'
|
|
|
|
# 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 = '/admin_media/'
|
|
|
|
# Don't share this with anybody.
|
|
SECRET_KEY = 'ljlv2lb2d&)#by6th=!v=03-c^(o4lop92i@z4b3f1&ve0yx6d'
|
|
|
|
MIDDLEWARE_CLASSES = (
|
|
'django.middleware.common.CommonMiddleware',
|
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
|
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
|
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
|
#'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
|
|
)
|
|
|
|
INTERNAL_IPS = ('127.0.0.1',)
|
|
|
|
|
|
TEMPLATE_CONTEXT_PROCESSORS = (
|
|
'django.core.context_processors.auth',
|
|
'django.core.context_processors.debug',
|
|
'django.core.context_processors.i18n',
|
|
'django.core.context_processors.media',
|
|
'django.core.context_processors.request',
|
|
)
|
|
|
|
ROOT_URLCONF = 'example.urls'
|
|
|
|
SITE_ID = 1
|
|
|
|
INSTALLED_APPS = (
|
|
'django.contrib.auth',
|
|
'django.contrib.contenttypes',
|
|
'django.contrib.sessions',
|
|
'django.contrib.sites',
|
|
'django.contrib.flatpages',
|
|
'django.contrib.admin',
|
|
'authority',
|
|
'example.exampleapp',
|
|
'debug_toolbar',
|
|
'django_extensions',
|
|
)
|
|
|
|
TEMPLATE_LOADERS = (
|
|
'django.template.loaders.filesystem.load_template_source',
|
|
'django.template.loaders.app_directories.load_template_source',
|
|
)
|
|
|
|
TEMPLATE_DIRS = (
|
|
os.path.join(PROJECT_ROOT, "templates"),
|
|
)
|
|
|
|
# Use local_settings.py for things to override privately
|
|
try:
|
|
from local_settings import *
|
|
except ImportError:
|
|
pass
|