scrutiny/debian/debian_config.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
896 B
Python
Raw Normal View History

2015-11-18 15:05:34 +01:00
# This file is sourced by "execfile" from scrutiny.settings
import os
PROJECT_NAME = 'scrutiny'
DEBUG = False
TEMPLATE_DEBUG = False
2020-01-19 17:55:45 +01:00
SECRET_KEY = open('/etc/%s/secret' % PROJECT_NAME).read()
2015-11-18 15:05:34 +01:00
ADMINS = (('Tous', 'root@localhost'),)
EMAIL_SUBJECT_PREFIX = '[%s] ' % PROJECT_NAME
ETC_DIR = '/etc/%s' % PROJECT_NAME
VAR_DIR = '/var/lib/%s' % PROJECT_NAME
# collecstatic destination
STATIC_ROOT = os.path.join(VAR_DIR, 'collectstatic')
2015-11-18 15:31:27 +01:00
MEDIA_ROOT = os.path.join(VAR_DIR, 'media')
2015-11-18 15:05:34 +01:00
# Browsers may ensure that cookies are only sent under an HTTPS connection
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SECURE = True
SESSION_EXPIRE_AT_BROWSER_CLOSER = True
SESSION_COOKIE_AGE = 36000 # 10h
2020-01-19 18:35:48 +01:00
2015-11-18 15:05:34 +01:00
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': PROJECT_NAME,
}
2020-12-16 15:48:05 +01:00
}
2015-11-18 15:05:34 +01:00
#
# local settings
#
2020-01-19 17:55:45 +01:00
exec(open(os.path.join(ETC_DIR, 'settings.py')).read())