-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
116 lines (93 loc) · 3.24 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
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
# -*- coding: utf-8 -*-
"""
Settings for Django.
Copyright (c) HUDORA. All rights reserved.
"""
# See http://docs.djangoproject.com/en/dev/ref/settings/ for inspiration
import os
import django
# calculated paths for django and the site
# used as starting points for various other paths
DJANGO_ROOT = os.path.dirname(os.path.realpath(django.__file__))
SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
DEBUG = True
MEDIA_URL = 'http://s.hdimg.net/myplfrontend/'
SESSION_COOKIE_DOMAIN = 'hudora.biz' # or hudora.de
ROOT_URLCONF = 'urls'
SITE_ID = 2 # intern.hudora.biz
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.admin',
'django.contrib.comments',
'django.contrib.markup',
'hudoratools',
'hudjango',
'myplfrontend',
)
TEMPLATE_DIRS = (
os.path.join(SITE_ROOT, 'generic_templates'),
'/usr/local/www/www_intern/generic_templates/',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.core.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
)
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
'django.template.loaders.app_directories.load_template_source',
'django.template.loaders.eggs.load_template_source',
)
MIDDLEWARE_CLASSES = (
#'debug_toolbar.middleware.DebugToolbarMiddleware',
'hudjango.middleware.clienttrack.ClientTrackMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
# default settings which should be the same for most Django applications at Hudora
import os
ADMIN_MEDIA_PREFIX = 'http://s.hdimg.net/djangoadmin/1.0.2/'
INTERNAL_IPS = ('127.0.0.1')
TIME_FORMAT = 'H:i'
TIME_ZONE = 'Europe/Amsterdam'
DATETIME_FORMAT = 'Y-m-d H:i:s'
DATE_FORMAT = 'Y-m-d'
USE_I18N = True
LANGUAGE_CODE = 'de-de'
LANGUAGES = (
('zh', 'Chinese'),
('de', 'German'),
('en', 'English'),
)
AUTHENTICATION_BACKENDS = ('hudjango.auth.backends.ZimbraBackend', 'django.contrib.auth.backends.ModelBackend')
LDAP_SERVER_NAME = 'mail.hudora.biz'
SECRET_KEY = 'sua1+khy2x-dojd_+r2j^7$asdfasQ@#$)!v94tpxe-g&_n6xxxv0!f+y'
CACHE_BACKEND = 'memcached://balancer.local.hudora.biz:11211/'
os.environ['PYJASPER_SERVLET_URL'] = 'http://www-alt.hudora.de:8080/pyJasper/jasper.py'
COUCHDB_STORAGE_OPTIONS = {'server': "http://couchdb1.local.hudora.biz:5984"}
DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_psycopg2', 'mysql', 'sqlite3'
DATABASE_HOST = 'postgresql.local.hudora.biz'
DATABASE_NAME = 'hudora'
DATABASE_PASSWORD = 'ge3Xei2O'
DATABASE_USER = 'hudora'
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'mysql', 'sqlite3'
DATABASE_HOST = ''
DATABASE_NAME = 'testdb'
DATABASE_PASSWORD = ''
DATABASE_USER = ''
SERVER_EMAIL = '[email protected]'
EMAIL_HOST = 'mail.hudora.biz'
EMAIL_USE_TLS = True
ADMINS = (
('Zwitschr', '[email protected]'),
('HUDORA Operations', '[email protected]'),
)
ADMINS = ()
MANAGERS = ADMINS
PREPEND_WWW = False