-
Notifications
You must be signed in to change notification settings - Fork 12
/
local_settings.docker.py
127 lines (110 loc) · 3.33 KB
/
local_settings.docker.py
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# coding.: utf-8
# This file is exec'd from settings.py, so it has access to and can modify all
# the variables in settings.py.
# If this file is changed in development, the development server will have to
# be manually restarted because changes will not be noticed immediately.
DEBUG = True
INTERNAL_IPS = ("127.0.0.1",)
ALLOWED_HOSTS = ('127.0.0.1', 'localhost')
STATIC_ROOT = '/app/static'
MEDIA_ROOT = '/app/docker/data'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(MEDIA_ROOT, 'geany_dev.db'),
},
'nightlybuilds': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(MEDIA_ROOT, 'geany_dev_nightlybuilds.db')
}
}
SECRET_KEY = "f94b410d-0401-4f25-a69e-d5cbbf7717f3-1af070a9-ebef-4efe-a779-a9706bbdfd4a"
NEVERCACHE_KEY = "c8eb09b7-bd7e-4375-8293-6ffe53bf92e1-884d109e-6da4-4b99-bc56-075d8a498d4c"
CSRF_COOKIE_HTTPONLY = True
CSRF_COOKIE_SECURE = False
SSL_FORCE_URL_PREFIXES = ()
SESSION_COOKIE_SECURE = False
USE_X_FORWARDED_HOST = False
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
}
FORCE_SCRIPT_NAME = ''
SERVER_EMAIL = 'root@localhost'
DEFAULT_FROM_EMAIL = 'root@localhost'
NIGHTLYBUILDS_BASE_DIR = os.path.join(MEDIA_ROOT, 'nightly_mirror')
IRC_USER_LIST_FILE = '/data/irc_userlist'
STATIC_DOCS_GEANY_SOURCE_TARBALL = '/tmp/geany_git.tar.gz'
STATIC_DOCS_GEANY_DESTINATION_DIR = os.path.join(MEDIA_ROOT, 'i18n')
STATIC_DOCS_GEANY_DESTINATION_URL = os.path.join(MEDIA_URL, 'i18n')
STATIC_DOCS_GEANY_I18N_STATISTICS_FILENAME = 'i18n_statistics.json'
LATEST_VERSION_RELEASES_DIRECTORY = '/nonexistant/geany'
LATEST_VERSION_PLUGINS_RELEASES_DIRECTORY = '/nonexistant/plugins'
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'verbose': {
'format': '%(asctime)s %(name)s %(process)d %(threadName)s %(levelname)s %(message)s'
},
},
'filters': {
'require_debug_false': {
'()': 'django.utils.log.RequireDebugFalse'
},
},
'handlers': {
'console':{
'level':'DEBUG',
'class':'logging.StreamHandler',
'formatter': 'verbose'
},
},
'loggers': {
'': {
'handlers':['console'],
'level':'DEBUG',
'propagate': False,
},
'root': {
'handlers':['console'],
'level':'DEBUG',
'propagate': False,
},
'py.warnings': {
'handlers':['console'],
'propagate': True,
'level':'DEBUG',
},
'django': {
'handlers':['console'],
'propagate': True,
'level':'DEBUG',
},
'django.db': {
'handlers':['console'],
'level': 'INFO',
'propagate': True,
},
'django.template': {
'handlers':['console'],
'level': 'INFO',
'propagate': True,
},
'django.utils.autoreload': {
'handlers': [],
'level': 'INFO',
'propagate': True,
},
'MARKDOWN': {
'level': 'INFO',
'propagate': True,
},
'PIL': {
'handlers': [],
'level': 'INFO',
'propagate': True,
},
}
}