1 # Django settings for eatslugs project.
3 # Rather than editing settings here, add them to the localsettings.py file
4 # which will be included at the end of the run and replace anything in here.
7 topdir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
10 TEMPLATE_DEBUG = DEBUG
13 ('Brett Parker', 'iDunno@sommitrealweird.co.uk'),
20 'ENGINE': 'django.db.backends.sqlite3',
21 'NAME': os.path.join(topdir, 'eatslugs.db')
25 TIME_ZONE = 'Europe/London'
27 LANGUAGE_CODE = 'en-gb'
31 # If you set this to False, Django will make some optimizations so as not
32 # to load the internationalization machinery.
35 MEDIA_ROOT = os.path.join(topdir, 'media') + os.sep
38 ADMIN_MEDIA_PREFIX = '/admin-media/'
42 key_chars = "%s%s%s" %(string.letters, string.digits, '+-()_#~')
43 SECRET_KEY = "".join([random.choice(key_chars) for a in range(0,50)])
45 # List of callables that know how to import templates from various sources.
47 'django.template.loaders.filesystem.Loader',
48 'django.template.loaders.app_directories.Loader',
51 MIDDLEWARE_CLASSES = (
52 'django.middleware.common.CommonMiddleware',
53 'django.contrib.sessions.middleware.SessionMiddleware',
54 'django.contrib.auth.middleware.AuthenticationMiddleware',
60 os.path.join(topdir, 'templates')
64 'django.contrib.admin',
65 'django.contrib.auth',
66 'django.contrib.contenttypes',
67 'django.contrib.sessions',
68 'django.contrib.sites',
74 'BACKEND': 'django.template.backends.django.DjangoTemplates',
75 'DIRS': [os.path.join(topdir, 'templates'),],
78 'context_processors': [
79 'django.contrib.auth.context_processors.auth',
80 'django.core.context_processors.debug',
81 'django.core.context_processors.i18n',
82 'generic.context_processors.media',
91 from localsettings import *