1
# Django settings for bacchus_server project.
7
# ('Your Name', 'your_email@example.com'),
14
# Local time zone for this installation. Choices can be found here:
15
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
16
# although not all choices may be available on all operating systems.
17
# In a Windows environment this must be set to your system time zone.
18
TIME_ZONE = 'America/Miami'
20
# Language code for this installation. All choices can be found here:
21
# http://www.i18nguy.com/unicode/language-identifiers.html
22
LANGUAGE_CODE = 'en-us'
26
# If you set this to False, Django will make some optimizations so as not
27
# to load the internationalization machinery.
30
# If you set this to False, Django will not format dates, numbers and
31
# calendars according to the current locale.
34
# If you set this to False, Django will not use timezone-aware datetimes.
37
# Absolute filesystem path to the directory that will hold user-uploaded files.
38
# Example: "/var/www/example.com/media/"
41
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
43
# Examples: "http://example.com/media/", "http://media.example.com/"
46
# Absolute path to the directory static files should be collected to.
47
# Don't put anything in this directory yourself; store your static files
48
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
49
# Example: "/var/www/example.com/static/"
52
# URL prefix for static files.
53
# Example: "http://example.com/static/", "http://static.example.com/"
54
STATIC_URL = '/static/'
56
# Additional locations of static files
58
# Put strings here, like "/home/html/static" or "C:/www/django/static".
59
# Always use forward slashes, even on Windows.
60
# Don't forget to use absolute paths, not relative paths.
63
# List of finder classes that know how to find static files in
65
STATICFILES_FINDERS = (
66
'django.contrib.staticfiles.finders.FileSystemFinder',
67
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
68
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
71
# Make this unique, and don't share it with anybody.
72
SECRET_KEY = 'n4n*q9p_pqyaevt_m&$bni0l*he2tus6u0_e0twc76w%&8vu18'
74
# List of callables that know how to import templates from various sources.
76
'django.template.loaders.filesystem.Loader',
77
'django.template.loaders.app_directories.Loader',
78
# 'django.template.loaders.eggs.Loader',
81
MIDDLEWARE_CLASSES = (
82
'django.middleware.common.CommonMiddleware',
83
'django.contrib.sessions.middleware.SessionMiddleware',
84
'django.middleware.csrf.CsrfViewMiddleware',
85
'django.contrib.auth.middleware.AuthenticationMiddleware',
86
'django.contrib.messages.middleware.MessageMiddleware',
87
# Uncomment the next line for simple clickjacking protection:
88
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
91
ROOT_URLCONF = 'bacchus_server.urls'
93
# Python dotted path to the WSGI application used by Django's runserver.
94
WSGI_APPLICATION = 'bacchus_server.wsgi.application'
97
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
98
# Always use forward slashes, even on Windows.
99
# Don't forget to use absolute paths, not relative paths.
103
'django.contrib.auth',
104
'django.contrib.contenttypes',
105
'django.contrib.sessions',
106
'django.contrib.sites',
107
'django.contrib.messages',
108
'django.contrib.staticfiles',
109
# Uncomment the next line to enable the admin:
110
# 'django.contrib.admin',
111
# Uncomment the next line to enable admin documentation:
112
# 'django.contrib.admindocs',
115
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
117
# A sample logging configuration. The only tangible logging
118
# performed by this configuration is to send an email to
119
# the site admins on every HTTP 500 error when DEBUG=False.
120
# See http://docs.djangoproject.com/en/dev/topics/logging for
121
# more details on how to customize your logging configuration.
124
'disable_existing_loggers': False,
126
'require_debug_false': {
127
'()': 'django.utils.log.RequireDebugFalse'
133
'filters': ['require_debug_false'],
134
'class': 'django.utils.log.AdminEmailHandler'
139
'handlers': ['mail_admins'],