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 TEST_RUNNER = 'django.test.runner.DiscoverRunner'
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 STATIC_URL = '/static/'
42 key_chars = "%s%s%s" % (string.letters, string.digits, '+-()_#~')
43 SECRET_KEY = [random.choice(key_chars) for a in range(0,50)]
47 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
48 'LOCATION': '%s/tmp' %(topdir),
53 'django.template.loaders.filesystem.Loader',
54 'django.template.loaders.app_directories.Loader',
57 MIDDLEWARE_CLASSES = (
58 'django.middleware.common.CommonMiddleware',
59 'django.contrib.sessions.middleware.SessionMiddleware',
60 'django.contrib.auth.middleware.AuthenticationMiddleware',
61 'django.contrib.messages.middleware.MessageMiddleware',
62 'django.middleware.csrf.CsrfViewMiddleware',
63 'django.contrib.admindocs.middleware.XViewMiddleware',
69 os.path.join(topdir, 'templates'),
73 'django.contrib.auth',
74 'django.contrib.contenttypes',
75 'django.contrib.sessions',
76 'django.contrib.sites',
77 'django.contrib.admin',
78 'django.contrib.comments',
85 TEMPLATE_CONTEXT_PROCESSORS = (
86 'django.contrib.auth.context_processors.auth',
87 'django.core.context_processors.debug',
88 'django.core.context_processors.i18n',
89 'generic.context_processors.media',
90 'bpcms.context_processors.content_menu',
91 'bpcms.context_processors.content_submenu',
92 'bpcms.context_processors.content_breadcrumb',
93 'blog.context_processors.content_breadcrumb',
94 'blog.context_processors.blog_feed',
95 'photo.context_processors.content_breadcrumb',
100 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
101 'initial_header_level': 2,
102 'doctitle_xform': False,
106 BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
113 BLOG_TITLE = u'The World of SommitRealWeird.'
114 BLOG_FEED_ROOT = '/feeds/blog/'
117 from localsettings import *