Stop ReST from dropping the primary title if it's the first title in the document.
[sommitrealweird.git] / sommitrealweird / settings.py
1 # Django settings for sommitrealweird project.
2
3 # Rather than editing these here, add them to the localsettings.py file which
4 # will be included at the end of the run
5
6 import os
7
8 topdir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
9
10 ADMINS = (
11     ('Brett Parker', 'iDunno@sommitrealweird.co.uk'),
12 )
13
14 MANAGERS = ADMINS
15
16 DATABASE_ENGINE = 'sqlite3'
17 DATABASE_NAME = os.path.join(topdir, 'sommitrealweird.db')
18 DATABASE_USER = ''
19 DATABASE_PASSWORD = ''
20 DATABASE_HOST = ''
21 DATABASE_PORT = ''
22
23 TIME_ZONE = 'Europe/London'
24
25 LANGUAGE_CODE = 'en-gb'
26
27 SITE_ID = 1
28
29 # If you set this to False, Django will make some optimizations so as not
30 # to load the internationalization machinery.
31 USE_I18N = True
32
33 MEDIA_ROOT = os.path.join(topdir, 'media') + os.sep
34 MEDIA_URL = '/media/'
35
36 ADMIN_MEDIA_PREFIX = '/admin-media/'
37
38 import random
39 import string
40 key_chars = "%s%s%s" % (string.letters, string.digits, '+-()_#~')
41 SECRET_KEY = [random.choice(key_chars) for a in range(0,50)]
42
43 CACHE_BACKEND = 'file://%s/tmp' %(topdir)
44
45 TEMPLATE_LOADERS = (
46     'django.template.loaders.filesystem.load_template_source',
47     'django.template.loaders.app_directories.load_template_source',
48 )
49
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',
55 )
56
57 ROOT_URLCONF = 'urls'
58
59 TEMPLATE_DIRS = (
60     os.path.join(topdir, 'templates'),
61 )
62
63 INSTALLED_APPS = (
64     'django.contrib.auth',
65     'django.contrib.contenttypes',
66     'django.contrib.sessions',
67     'django.contrib.sites',
68     'django.contrib.admin',
69     'django.contrib.markup',
70     'django.contrib.comments',
71     'bpcms',
72     'generic',
73     'blog',
74     'photo',
75 )
76
77 TEMPLATE_CONTEXT_PROCESSORS = (
78     'django.core.context_processors.auth',
79     'django.core.context_processors.debug',
80     'django.core.context_processors.i18n',
81     'generic.context_processors.media',
82     'bpcms.context_processors.content_menu',
83     'bpcms.context_processors.content_submenu',
84     'bpcms.context_processors.content_breadcrumb',
85     'blog.context_processors.content_breadcrumb',
86     'blog.context_processors.blog_feed',
87     'photo.context_processors.content_breadcrumb',
88 )
89
90 APPEND_SLASH=False
91
92 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
93     'initial_header_level': 2,
94     'doctitle_xform': False,
95 }
96
97 BPCMS_ROOT = '/'
98 BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
99     'admin',
100     'blog',
101     'photos',
102 )
103
104 BLOG_ROOT = '/blog/'
105 BLOG_TITLE = u'The World of SommitRealWeird.'
106 BLOG_FEED_ROOT = '/feeds/blog/'
107
108 try:
109     from localsettings import *
110 except:
111     pass
112