/
settings.py
70 lines (51 loc) · 1.45 KB
/
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
# Django settings for hpfeedweb project.
import os
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
import mongoengine
mongoengine.connect('hpfeeds')
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Mark Schloesser', 'ms@mwcollect.org'),
)
MANAGERS = ADMINS
TIME_ZONE = 'Europe/Berlin'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = False
USE_L10N = False
MEDIA_ROOT = os.path.join(PROJECT_PATH, 'static')
MEDIA_URL = '/static/'
SECRET_KEY = 'tv5vn5gwcmni1q-jgmf1skh)$d4m^0b9-farb16^zpcdi74i!p'
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)
MIDDLEWARE_CLASSES = (
'exchandler.SimpleExceptionResponse',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
# 'django.contrib.messages.middleware.MessageMiddleware',
)
AUTHENTICATION_BACKENDS = (
'hpfeedauth.MongoEngineBackend',
)
SESSION_ENGINE = 'mongoengine.django.sessions'
ROOT_URLCONF = 'urls'
TEMPLATE_DIRS = (
os.path.join(PROJECT_PATH, 'templates'),
)
INSTALLED_APPS = (
'django.contrib.sessions',
'webif.tabs',
'webif'
)
LOGIN_URL = '/login/'
LOGIN_REDIRECT_URL = '/'
EMAIL_HOST = ''
EMAIL_PORT = 25
SERVER_EMAIL = 'admin@hpfeeds.honeycloud.net'
EMAIL_SUBJECT_PREFIX = '[hpfeeds] '