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.",
26 'ENGINE': 'django.db.backends.sqlite3',
27 'NAME': os.path.join(topdir, 'sommitrealweird.db')
31 DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
36 TIME_ZONE = 'Europe/London'
38 LANGUAGE_CODE = 'en-gb'
42 TEST_RUNNER = 'django.test.runner.DiscoverRunner'
44 # If you set this to False, Django will make some optimizations so as not
45 # to load the internationalization machinery.
48 MEDIA_ROOT = os.path.join(topdir, 'media') + os.sep
51 STATIC_ROOT = '/home/brettp/python-envs/django/lib/python3.11/site-packages/django/contrib/admin/static/'
52 STATIC_URL = '/static/'
56 key_chars = "%s%s%s" % (string.ascii_letters, string.digits, '+-()_#~')
57 SECRET_KEY = [random.choice(key_chars) for a in range(0,50)]
61 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
62 'LOCATION': '%s/tmp' %(topdir),
67 'django.middleware.common.CommonMiddleware',
68 'django.contrib.sessions.middleware.SessionMiddleware',
69 'django.contrib.auth.middleware.AuthenticationMiddleware',
70 'django.contrib.messages.middleware.MessageMiddleware',
71 'django.middleware.csrf.CsrfViewMiddleware',
78 'BACKEND': 'django.template.backends.django.DjangoTemplates',
79 'DIRS': [os.path.join(topdir, 'templates'),],
82 'context_processors': [
83 'django.template.context_processors.request',
84 'django.contrib.auth.context_processors.auth',
85 'django.contrib.messages.context_processors.messages',
86 'django.template.context_processors.debug',
87 'django.template.context_processors.i18n',
88 'django.template.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',
102 'django.contrib.auth',
103 'django.contrib.contenttypes',
104 'django.contrib.sessions',
105 'django.contrib.sites',
106 'django.contrib.admin',
107 'django.contrib.messages',
117 RESTRUCTUREDTEXT_FILTER_SETTINGS = {
118 'initial_header_level': 2,
119 'doctitle_xform': False,
123 BPCMS_DISALLOWED_ROOT_DOC_NAMES = (
130 BLOG_TITLE = u'The World of SommitRealWeird.'
131 BLOG_FEED_ROOT = '/feeds/blog/'
134 from localsettings import *