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.csrf.CsrfViewMiddleware',
55 'django.middleware.doc.XViewMiddleware',
61 os.path.join(topdir, 'templates'),
65 'django.contrib.auth',
66 'django.contrib.contenttypes',
67 'django.contrib.sessions',
68 'django.contrib.sites',
69 'django.contrib.admin',
70 'django.contrib.markup',
71 'django.contrib.comments',
78 TEMPLATE_CONTEXT_PROCESSORS = (
79 'django.core.context_processors.auth',
80 'django.core.context_processors.debug',
81 'django.core.context_processors.i18n',
82 'generic.context_processors.media',
83 'bpcms.context_processors.content_menu',
84 'bpcms.context_processors.content_submenu',
85 'bpcms.context_processors.content_breadcrumb',
86 'blog.context_processors.content_breadcrumb',
87 'blog.context_processors.blog_feed',
88 'photo.context_processors.content_breadcrumb',
93 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
94 'initial_header_level': 2,
95 'doctitle_xform': False,
99 BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
106 BLOG_TITLE = u'The World of SommitRealWeird.'
107 BLOG_FEED_ROOT = '/feeds/blog/'
110 from localsettings import *