-
Notifications
You must be signed in to change notification settings - Fork 12
/
settings_ex.py
42 lines (35 loc) · 1.26 KB
/
settings_ex.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
from settings import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
'OPTIONS': {'init_command': 'SET storage_engine=InnoDB'},
}
}
# Make this unique, and don't share it with anybody.
SECRET_KEY = ''
# Email settings
# cf. http://docs.djangoproject.com/en/dev/ref/settings/ -> EMAIL_*
DEFAULT_FROM_EMAIL = '[email protected]'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.example.com'
EMAIL_PORT = 25
EMAIL_HOST_USER = 'johndoe'
EMAIL_HOST_PASSWORD = 'secret'
# For production environments
DEBUG = False
TEMPLATE_DEBUG = False
LOG_LEVEL = logging.WARNING
DEBUG_PROPAGATE_EXCEPTIONS = DEBUG
# LDAP
LDAP = {
'host': '',
'port': '',
'user': '',
'password': '',
'search_base': 'o=com,dc=mozilla',
}