-
Notifications
You must be signed in to change notification settings - Fork 4
/
example_development_settings.py
75 lines (64 loc) · 2.08 KB
/
example_development_settings.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
from inyoka import INYOKA_VERSION
from inyoka.default_settings import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'ubuntuusers',
'USER': 'root',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
# debug settings
DEBUG = DEBUG_PROPAGATE_EXCEPTIONS = True
ALLOWED_HOSTS = ['.ubuntuusers.local']
# url settings
BASE_DOMAIN_NAME = 'ubuntuusers.local:8080'
INYOKA_URI_SCHEME = 'http'
SESSION_COOKIE_DOMAIN = '.ubuntuusers.local'
MEDIA_URL = '//media.%s/' % BASE_DOMAIN_NAME
STATIC_URL = '//static.%s/' % BASE_DOMAIN_NAME
LOGIN_URL='//%s/login/' % BASE_DOMAIN_NAME
ADMIN_MEDIA_PREFIX = STATIC_URL + '/_admin/'
INYOKA_SYSTEM_USER_EMAIL = 'system@' + BASE_DOMAIN_NAME
INYOKA_CONTACT_EMAIL = '@'.join(['webteam', BASE_DOMAIN_NAME])
INYOKA_HOST_STATICS = True
# Language code
LANGUAGE_CODE = 'de-DE'
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
SECRET_KEY = None
# adapt for your custom theme
# remove comment
"""
INSTALLED_APPS = INSTALLED_APPS + (
# 'inyoka_theme_ubuntuusers',
)
from os.path import join
THEME_PATH = join(BASE_PATH, '..', '..', 'theme-ubuntuusers', 'inyoka_theme_ubuntuusers')
STATICFILES_DIRS = [
join(THEME_PATH, 'static'), # let own theme take precedence, so files can be overwritten
] + STATICFILES_DIRS
TEMPLATES[1]['DIRS'].insert(0, join(THEME_PATH, 'jinja2'))
"""
# Sentry integration
# remove comment to enable sentry integration
# insert DSN for used sentry instance
"""
import sentry_sdk
from sentry_sdk.integrations.celery import CeleryIntegration
from sentry_sdk.integrations.django import DjangoIntegration
sentry_sdk.init(
dsn=None, # TODO: adapt to instance
integrations=[DjangoIntegration(), CeleryIntegration()],
traces_sample_rate=1.0,
#send_default_pii=True, # uncomment, if personal data in sentry is ok
release=INYOKA_VERSION,
environment="production"
)
"""
# Django Debug Toolbar Integration
#
# uncomment to activate debug toolbar support
#MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
#INSTALLED_APPS += ('debug_toolbar',)