1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
### Django settings for Parabola GNU/Linux-libre project.
## Debug settings
DEBUG = True # As far as I can tell, this must be True for /media/* URLs to work
TEMPLATE_DEBUG = True # More helpful this way
DEBUG_TOOLBAR = False # Must install package django-debug-toolbar to use
## For django debug toolbar
INTERNAL_IPS = ('127.0.0.1',)
## Notification admins
ADMINS = (
# ('Joe Admin', 'joeadmin@example.com'),
)
## MySQL Database settings
DATABASES = {
'default': {
'ENGINE' : 'django.db.backends.mysql',
'NAME' : 'parabola',
'USER' : 'parabola',
'PASSWORD': 'parabola',
'HOST' : '',
'PORT' : '',
# InnoDB WILL NOT work
'OPTIONS' : {'init_command': 'SET storage_engine=MyISAM'},
},
}
## sqlite3 Database settings
#DATABASES = {
# 'default': {
# 'ENGINE' : 'sqlite3',
# 'NAME' : '/srv/http/web/db.sqlite',
# },
#}
## Define cache settings
CACHES = {
'default': {
'BACKEND' : 'django.core.cache.backends.dummy.DummyCache',
#'BACKEND' : 'django.core.cache.backends.memcached.MemcachedCache',
#'LOCATION': '127.0.0.1:11211',
}
}
CACHE_MIDDLEWARE_KEY_PREFIX = 'arch'
CACHE_MIDDLEWARE_SECONDS = 300
## Use secure session cookies? Make this true if you want all
## logged-in actions to take place over HTTPS only. If developing
## locally, you will want to use False.
SESSION_COOKIE_SECURE = False
## location for saving dev pictures
MEDIA_ROOT = '/srv/http/media/devs/'
## web url for serving image files
MEDIA_URL = '/media/'
## Make this unique, and don't share it with anybody.
SECRET_KEY = '00000000000000000000000000000000000000000000000'
## CDN settings
CDN_ENABLED = False
# Scheme-relative URL, should work for both http/https
CDN_PATH = '//example.com/path/'
# vim: set ts=4 sw=4 et:
|