1
|
# This file is sourced by "execfile" from u-auth.settings
|
2
|
|
3
|
import os
|
4
|
|
5
|
from django.conf import global_settings
|
6
|
|
7
|
DEBUG = False
|
8
|
TEMPLATE_DEBUG = False
|
9
|
|
10
|
PROJECT_NAME = 'u-auth'
|
11
|
|
12
|
EMAIL_SUBJECT_PREFIX = '[%s] ' % PROJECT_NAME
|
13
|
|
14
|
ETC_DIR = '/etc/%s' % PROJECT_NAME
|
15
|
VAR_DIR = '/var/lib/%s' % PROJECT_NAME
|
16
|
|
17
|
# collecstatic destination
|
18
|
STATIC_ROOT = os.path.join(VAR_DIR, 'collectstatic')
|
19
|
|
20
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
21
|
|
22
|
METADATAS_DIR = os.path.join(VAR_DIR, 'metadatas')
|
23
|
|
24
|
SECRET_KEY = file('/etc/%s/secret' % PROJECT_NAME).read()
|
25
|
|
26
|
ORGANIZATIONS_DIR = os.path.join(VAR_DIR, 'organizations')
|
27
|
|
28
|
execfile(os.path.join(ETC_DIR, 'settings.py'))
|