MANAGERS = ADMINS
-DATABASE_ENGINE = 'sqlite3'
-DATABASE_NAME = os.path.join(topdir, 'eatslugs.db')
-DATABASE_USER = ''
-DATABASE_PASSWORD = ''
-DATABASE_HOST = ''
-DATABASE_PORT = ''
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(topdir, 'eatslugs.db')
+ }
+}
TIME_ZONE = 'Europe/London'
key_chars = "%s%s%s" %(string.letters, string.digits, '+-()_#~')
SECRET_KEY = "".join([random.choice(key_chars) for a in range(0,50)])
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.load_template_source',
- 'django.template.loaders.app_directories.load_template_source',
-)
-
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
ROOT_URLCONF = 'urls'
-TEMPLATE_DIRS = (
- os.path.join(topdir, 'templates')
-)
-
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'recipes',
)
-TEMPLATE_CONTEXT_PROCESSORS = (
- 'django.core.context_processors.auth',
- 'django.core.context_processors.debug',
- 'django.core.context_processors.i18n',
- 'generic.context_processors.media',
-)
+TEMPLATES = [
+ {
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'DIRS': [os.path.join(topdir, 'templates'),],
+ 'APP_DIRS': True,
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.contrib.auth.context_processors.auth',
+ 'django.core.context_processors.debug',
+ 'django.core.context_processors.i18n',
+ 'generic.context_processors.media',
+ ],
+ 'debug': True,
+ },
+ },
+]
+
try:
from localsettings import *