~cmiller/bacchus/trunk

« back to all changes in this revision

Viewing changes to server-ubuntu/bacchus_server/bacchus_server/settings.py

  • Committer: C Miller
  • Date: 2013-10-17 21:03:00 UTC
  • Revision ID: bzrdev@chad.org-20131017210300-wusg3oamogo1c1d4
Abandon Python. Use Go.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Django settings for bacchus_server project.
2
 
 
3
 
DEBUG = True
4
 
TEMPLATE_DEBUG = DEBUG
5
 
 
6
 
ADMINS = (
7
 
    # ('Your Name', 'your_email@example.com'),
8
 
)
9
 
 
10
 
MANAGERS = ADMINS
11
 
 
12
 
ALLOWED_HOSTS = []
13
 
 
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'
19
 
 
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'
23
 
 
24
 
SITE_ID = 1
25
 
 
26
 
# If you set this to False, Django will make some optimizations so as not
27
 
# to load the internationalization machinery.
28
 
USE_I18N = True
29
 
 
30
 
# If you set this to False, Django will not format dates, numbers and
31
 
# calendars according to the current locale.
32
 
USE_L10N = True
33
 
 
34
 
# If you set this to False, Django will not use timezone-aware datetimes.
35
 
USE_TZ = True
36
 
 
37
 
# Absolute filesystem path to the directory that will hold user-uploaded files.
38
 
# Example: "/var/www/example.com/media/"
39
 
MEDIA_ROOT = ''
40
 
 
41
 
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
42
 
# trailing slash.
43
 
# Examples: "http://example.com/media/", "http://media.example.com/"
44
 
MEDIA_URL = ''
45
 
 
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/"
50
 
STATIC_ROOT = ''
51
 
 
52
 
# URL prefix for static files.
53
 
# Example: "http://example.com/static/", "http://static.example.com/"
54
 
STATIC_URL = '/static/'
55
 
 
56
 
# Additional locations of static files
57
 
STATICFILES_DIRS = (
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.
61
 
)
62
 
 
63
 
# List of finder classes that know how to find static files in
64
 
# various locations.
65
 
STATICFILES_FINDERS = (
66
 
    'django.contrib.staticfiles.finders.FileSystemFinder',
67
 
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
68
 
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
69
 
)
70
 
 
71
 
# Make this unique, and don't share it with anybody.
72
 
SECRET_KEY = 'n4n*q9p_pqyaevt_m&$bni0l*he2tus6u0_e0twc76w%&8vu18'
73
 
 
74
 
# List of callables that know how to import templates from various sources.
75
 
TEMPLATE_LOADERS = (
76
 
    'django.template.loaders.filesystem.Loader',
77
 
    'django.template.loaders.app_directories.Loader',
78
 
#     'django.template.loaders.eggs.Loader',
79
 
)
80
 
 
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',
89
 
)
90
 
 
91
 
ROOT_URLCONF = 'bacchus_server.urls'
92
 
 
93
 
# Python dotted path to the WSGI application used by Django's runserver.
94
 
WSGI_APPLICATION = 'bacchus_server.wsgi.application'
95
 
 
96
 
TEMPLATE_DIRS = (
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.
100
 
)
101
 
 
102
 
INSTALLED_APPS = (
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',
113
 
)
114
 
 
115
 
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
116
 
 
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.
122
 
LOGGING = {
123
 
    'version': 1,
124
 
    'disable_existing_loggers': False,
125
 
    'filters': {
126
 
        'require_debug_false': {
127
 
            '()': 'django.utils.log.RequireDebugFalse'
128
 
        }
129
 
    },
130
 
    'handlers': {
131
 
        'mail_admins': {
132
 
            'level': 'ERROR',
133
 
            'filters': ['require_debug_false'],
134
 
            'class': 'django.utils.log.AdminEmailHandler'
135
 
        }
136
 
    },
137
 
    'loggers': {
138
 
        'django.request': {
139
 
            'handlers': ['mail_admins'],
140
 
            'level': 'ERROR',
141
 
            'propagate': True,
142
 
        },
143
 
    }
144
 
}