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'),
18 'ENGINE': 'django.db.backends.sqlite3',
19 'NAME': os.path.join(topdir, 'sommitrealweird.db')
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 STATIC_URL = '/static/'
40 key_chars = "%s%s%s" % (string.letters, string.digits, '+-()_#~')
41 SECRET_KEY = [random.choice(key_chars) for a in range(0,50)]
45 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
46 'LOCATION': '%s/tmp' %(topdir),
51 'django.template.loaders.filesystem.Loader',
52 'django.template.loaders.app_directories.Loader',
55 MIDDLEWARE_CLASSES = (
56 'django.middleware.common.CommonMiddleware',
57 'django.contrib.sessions.middleware.SessionMiddleware',
58 'django.contrib.auth.middleware.AuthenticationMiddleware',
59 'django.contrib.messages.middleware.MessageMiddleware',
60 'django.middleware.csrf.CsrfViewMiddleware',
61 'django.middleware.doc.XViewMiddleware',
67 os.path.join(topdir, 'templates'),
71 'django.contrib.auth',
72 'django.contrib.contenttypes',
73 'django.contrib.sessions',
74 'django.contrib.sites',
75 'django.contrib.admin',
76 'django.contrib.markup',
77 'django.contrib.comments',
84 TEMPLATE_CONTEXT_PROCESSORS = (
85 'django.contrib.auth.context_processors.auth',
86 'django.core.context_processors.debug',
87 'django.core.context_processors.i18n',
88 'generic.context_processors.media',
89 'bpcms.context_processors.content_menu',
90 'bpcms.context_processors.content_submenu',
91 'bpcms.context_processors.content_breadcrumb',
92 'blog.context_processors.content_breadcrumb',
93 'blog.context_processors.blog_feed',
94 'photo.context_processors.content_breadcrumb',
99 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
100 'initial_header_level': 2,
101 'doctitle_xform': False,
105 BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
112 BLOG_TITLE = u'The World of SommitRealWeird.'
113 BLOG_FEED_ROOT = '/feeds/blog/'
116 from localsettings import *