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 MIDDLEWARE_CLASSES = (
46 'django.middleware.common.CommonMiddleware',
47 'django.contrib.sessions.middleware.SessionMiddleware',
48 'django.contrib.auth.middleware.AuthenticationMiddleware',
54 'django.contrib.admin',
55 'django.contrib.auth',
56 'django.contrib.contenttypes',
57 'django.contrib.sessions',
58 'django.contrib.sites',
64 'BACKEND': 'django.template.backends.django.DjangoTemplates',
65 'DIRS': [os.path.join(topdir, 'templates'),],
68 'context_processors': [
69 'django.contrib.auth.context_processors.auth',
70 'django.core.context_processors.debug',
71 'django.core.context_processors.i18n',
72 'generic.context_processors.media',
81 from localsettings import *