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'),
15 "www.sommitrealweird.co.uk",
16 "www.sommitrealweird.co.uk.",
23 'ENGINE': 'django.db.backends.sqlite3',
24 'NAME': os.path.join(topdir, 'sommitrealweird.db')
28 TIME_ZONE = 'Europe/London'
30 LANGUAGE_CODE = 'en-gb'
34 TEST_RUNNER = 'django.test.runner.DiscoverRunner'
36 # If you set this to False, Django will make some optimizations so as not
37 # to load the internationalization machinery.
40 MEDIA_ROOT = os.path.join(topdir, 'media') + os.sep
43 STATIC_ROOT = '/usr/lib/python3/dist-packages/django/contrib/admin/static/'
44 STATIC_URL = '/static/'
48 key_chars = "%s%s%s" % (string.ascii_letters, string.digits, '+-()_#~')
49 SECRET_KEY = [random.choice(key_chars) for a in range(0,50)]
53 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
54 'LOCATION': '%s/tmp' %(topdir),
58 MIDDLEWARE_CLASSES = (
59 'django.middleware.common.CommonMiddleware',
60 'django.contrib.sessions.middleware.SessionMiddleware',
61 'django.contrib.auth.middleware.AuthenticationMiddleware',
62 'django.contrib.messages.middleware.MessageMiddleware',
63 'django.middleware.csrf.CsrfViewMiddleware',
64 'django.contrib.admindocs.middleware.XViewMiddleware',
71 'BACKEND': 'django.template.backends.django.DjangoTemplates',
72 'DIRS': [os.path.join(topdir, 'templates'),],
75 'context_processors': [
76 'django.contrib.auth.context_processors.auth',
77 'django.contrib.messages.context_processors.messages',
78 'django.template.context_processors.debug',
79 'django.template.context_processors.i18n',
80 'django.template.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 'blog.context_processors.blog_feed',
86 'photo.context_processors.content_breadcrumb',
94 'django.contrib.auth',
95 'django.contrib.contenttypes',
96 'django.contrib.sessions',
97 'django.contrib.sites',
98 'django.contrib.admin',
108 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
109 'initial_header_level': 2,
110 'doctitle_xform': False,
114 BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
121 BLOG_TITLE = u'The World of SommitRealWeird.'
122 BLOG_FEED_ROOT = '/feeds/blog/'
125 from localsettings import *