1 # Django settings for sommitrealweird project.
3 # Rather than editing these here, add them to the localsettings.py file which
4 # will be included at the end of the run
8 topdir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
11 ('Brett Parker', 'iDunno@sommitrealweird.co.uk'),
16 DATABASE_ENGINE = 'sqlite3'
17 DATABASE_NAME = os.path.join(topdir, 'sommitrealweird.db')
19 DATABASE_PASSWORD = ''
23 TIME_ZONE = 'Europe/London'
25 LANGUAGE_CODE = 'en-gb'
29 # If you set this to False, Django will make some optimizations so as not
30 # to load the internationalization machinery.
33 MEDIA_ROOT = os.path.join(topdir, 'media') + os.sep
36 ADMIN_MEDIA_PREFIX = '/admin-media/'
40 key_chars = "%s%s%s" % (string.letters, string.digits, '+-()_#~')
41 SECRET_KEY = [random.choice(key_chars) for a in range(0,50)]
43 CACHE_BACKEND = 'file://%s/tmp' %(topdir)
46 'django.template.loaders.filesystem.load_template_source',
47 'django.template.loaders.app_directories.load_template_source',
50 MIDDLEWARE_CLASSES = (
51 'django.middleware.common.CommonMiddleware',
52 'django.contrib.sessions.middleware.SessionMiddleware',
53 'django.contrib.auth.middleware.AuthenticationMiddleware',
54 'django.middleware.doc.XViewMiddleware',
60 os.path.join(topdir, 'templates'),
64 'django.contrib.auth',
65 'django.contrib.contenttypes',
66 'django.contrib.sessions',
67 'django.contrib.sites',
68 'django.contrib.admin',
69 'django.contrib.markup',
76 TEMPLATE_CONTEXT_PROCESSORS = (
77 'django.core.context_processors.auth',
78 'django.core.context_processors.debug',
79 'django.core.context_processors.i18n',
80 'generic.context_processors.media',
81 'bpcms.context_processors.content_menu',
82 'bpcms.context_processors.content_submenu',
83 'bpcms.context_processors.content_breadcrumb',
84 'blog.context_processors.content_breadcrumb',
85 'photo.context_processors.content_breadcrumb',
90 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
91 'initial_header_level': 2,
95 BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
102 BLOG_TITLE = u'The World of SommitRealWeird.'
105 from localsettings import *