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'),
 
  18 DATABASE_ENGINE = 'sqlite3'
 
  19 DATABASE_NAME = os.path.join(topdir, 'eatslugs.db')
 
  21 DATABASE_PASSWORD = ''
 
  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.load_template_source',
 
  48     'django.template.loaders.app_directories.load_template_source',
 
  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',
 
  72 TEMPLATE_CONTEXT_PROCESSORS = (
 
  73     'django.core.context_processors.auth',
 
  74     'django.core.context_processors.debug',
 
  75     'django.core.context_processors.i18n',
 
  76     'generic.context_processors.media',
 
  80     from localsettings import *