Statistics
| Branch: | Revision:

root / env / lib / python2.7 / site-packages / django / conf / global_settings.py @ 1a305335

History | View | Annotate | Download (21.6 KB)

1
# Default Django settings. Override these with settings in the module
2
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
3

    
4
# This is defined here as a do-nothing function because we can't import
5
# django.utils.translation -- that module depends on the settings.
6
gettext_noop = lambda s: s
7

    
8
####################
9
# CORE             #
10
####################
11

    
12
DEBUG = False
13
TEMPLATE_DEBUG = False
14

    
15
# Whether the framework should propagate raw exceptions rather than catching
16
# them. This is useful under some testing situations and should never be used
17
# on a live site.
18
DEBUG_PROPAGATE_EXCEPTIONS = False
19

    
20
# Whether to use the "Etag" header. This saves bandwidth but slows down performance.
21
USE_ETAGS = False
22

    
23
# People who get code error notifications.
24
# In the format (('Full Name', 'email@example.com'), ('Full Name', 'anotheremail@example.com'))
25
ADMINS = ()
26

    
27
# Tuple of IP addresses, as strings, that:
28
#   * See debug comments, when DEBUG is true
29
#   * Receive x-headers
30
INTERNAL_IPS = ()
31

    
32
# Local time zone for this installation. All choices can be found here:
33
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
34
# systems may support all possibilities). When USE_TZ is True, this is
35
# interpreted as the default user time zone.
36
TIME_ZONE = 'America/Chicago'
37

    
38
# If you set this to True, Django will use timezone-aware datetimes.
39
USE_TZ = False
40

    
41
# Language code for this installation. All choices can be found here:
42
# http://www.i18nguy.com/unicode/language-identifiers.html
43
LANGUAGE_CODE = 'en-us'
44

    
45
# Languages we provide translations for, out of the box. The language name
46
# should be the utf-8 encoded local name for the language.
47
LANGUAGES = (
48
    ('ar', gettext_noop('Arabic')),
49
    ('az', gettext_noop('Azerbaijani')),
50
    ('bg', gettext_noop('Bulgarian')),
51
    ('bn', gettext_noop('Bengali')),
52
    ('bs', gettext_noop('Bosnian')),
53
    ('ca', gettext_noop('Catalan')),
54
    ('cs', gettext_noop('Czech')),
55
    ('cy', gettext_noop('Welsh')),
56
    ('da', gettext_noop('Danish')),
57
    ('de', gettext_noop('German')),
58
    ('el', gettext_noop('Greek')),
59
    ('en', gettext_noop('English')),
60
    ('en-gb', gettext_noop('British English')),
61
    ('eo', gettext_noop('Esperanto')),
62
    ('es', gettext_noop('Spanish')),
63
    ('es-ar', gettext_noop('Argentinian Spanish')),
64
    ('es-mx', gettext_noop('Mexican Spanish')),
65
    ('es-ni', gettext_noop('Nicaraguan Spanish')),
66
    ('et', gettext_noop('Estonian')),
67
    ('eu', gettext_noop('Basque')),
68
    ('fa', gettext_noop('Persian')),
69
    ('fi', gettext_noop('Finnish')),
70
    ('fr', gettext_noop('French')),
71
    ('fy-nl', gettext_noop('Frisian')),
72
    ('ga', gettext_noop('Irish')),
73
    ('gl', gettext_noop('Galician')),
74
    ('he', gettext_noop('Hebrew')),
75
    ('hi', gettext_noop('Hindi')),
76
    ('hr', gettext_noop('Croatian')),
77
    ('hu', gettext_noop('Hungarian')),
78
    ('id', gettext_noop('Indonesian')),
79
    ('is', gettext_noop('Icelandic')),
80
    ('it', gettext_noop('Italian')),
81
    ('ja', gettext_noop('Japanese')),
82
    ('ka', gettext_noop('Georgian')),
83
    ('kk', gettext_noop('Kazakh')),
84
    ('km', gettext_noop('Khmer')),
85
    ('kn', gettext_noop('Kannada')),
86
    ('ko', gettext_noop('Korean')),
87
    ('lt', gettext_noop('Lithuanian')),
88
    ('lv', gettext_noop('Latvian')),
89
    ('mk', gettext_noop('Macedonian')),
90
    ('ml', gettext_noop('Malayalam')),
91
    ('mn', gettext_noop('Mongolian')),
92
    ('nb', gettext_noop('Norwegian Bokmal')),
93
    ('ne', gettext_noop('Nepali')),
94
    ('nl', gettext_noop('Dutch')),
95
    ('nn', gettext_noop('Norwegian Nynorsk')),
96
    ('pa', gettext_noop('Punjabi')),
97
    ('pl', gettext_noop('Polish')),
98
    ('pt', gettext_noop('Portuguese')),
99
    ('pt-br', gettext_noop('Brazilian Portuguese')),
100
    ('ro', gettext_noop('Romanian')),
101
    ('ru', gettext_noop('Russian')),
102
    ('sk', gettext_noop('Slovak')),
103
    ('sl', gettext_noop('Slovenian')),
104
    ('sq', gettext_noop('Albanian')),
105
    ('sr', gettext_noop('Serbian')),
106
    ('sr-latn', gettext_noop('Serbian Latin')),
107
    ('sv', gettext_noop('Swedish')),
108
    ('sw', gettext_noop('Swahili')),
109
    ('ta', gettext_noop('Tamil')),
110
    ('te', gettext_noop('Telugu')),
111
    ('th', gettext_noop('Thai')),
112
    ('tr', gettext_noop('Turkish')),
113
    ('tt', gettext_noop('Tatar')),
114
    ('uk', gettext_noop('Ukrainian')),
115
    ('ur', gettext_noop('Urdu')),
116
    ('vi', gettext_noop('Vietnamese')),
117
    ('zh-cn', gettext_noop('Simplified Chinese')),
118
    ('zh-tw', gettext_noop('Traditional Chinese')),
119
)
120

    
121
# Languages using BiDi (right-to-left) layout
122
LANGUAGES_BIDI = ("he", "ar", "fa")
123

    
124
# If you set this to False, Django will make some optimizations so as not
125
# to load the internationalization machinery.
126
USE_I18N = True
127
LOCALE_PATHS = ()
128
LANGUAGE_COOKIE_NAME = 'django_language'
129

    
130
# If you set this to True, Django will format dates, numbers and calendars
131
# according to user current locale.
132
USE_L10N = False
133

    
134
# Not-necessarily-technical managers of the site. They get broken link
135
# notifications and other various emails.
136
MANAGERS = ADMINS
137

    
138
# Default content type and charset to use for all HttpResponse objects, if a
139
# MIME type isn't manually specified. These are used to construct the
140
# Content-Type header.
141
DEFAULT_CONTENT_TYPE = 'text/html'
142
DEFAULT_CHARSET = 'utf-8'
143

    
144
# Encoding of files read from disk (template and initial SQL files).
145
FILE_CHARSET = 'utf-8'
146

    
147
# E-mail address that error messages come from.
148
SERVER_EMAIL = 'root@localhost'
149

    
150
# Whether to send broken-link emails.
151
SEND_BROKEN_LINK_EMAILS = False
152

    
153
# Database connection info.
154
DATABASES = {
155
    'default': {
156
        'ENGINE': 'django.db.backends.dummy',
157
    },
158
}
159

    
160
# Classes used to implement DB routing behavior.
161
DATABASE_ROUTERS = []
162

    
163
# The email backend to use. For possible shortcuts see django.core.mail.
164
# The default is to use the SMTP backend.
165
# Third-party backends can be specified by providing a Python path
166
# to a module that defines an EmailBackend class.
167
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
168

    
169
# Host for sending email.
170
EMAIL_HOST = 'localhost'
171

    
172
# Port for sending email.
173
EMAIL_PORT = 25
174

    
175
# Optional SMTP authentication information for EMAIL_HOST.
176
EMAIL_HOST_USER = ''
177
EMAIL_HOST_PASSWORD = ''
178
EMAIL_USE_TLS = False
179

    
180
# List of strings representing installed apps.
181
INSTALLED_APPS = ()
182

    
183
# List of locations of the template source files, in search order.
184
TEMPLATE_DIRS = ()
185

    
186
# List of callables that know how to import templates from various sources.
187
# See the comments in django/core/template/loader.py for interface
188
# documentation.
189
TEMPLATE_LOADERS = (
190
    'django.template.loaders.filesystem.Loader',
191
    'django.template.loaders.app_directories.Loader',
192
#     'django.template.loaders.eggs.Loader',
193
)
194

    
195
# List of processors used by RequestContext to populate the context.
196
# Each one should be a callable that takes the request object as its
197
# only parameter and returns a dictionary to add to the context.
198
TEMPLATE_CONTEXT_PROCESSORS = (
199
    'django.contrib.auth.context_processors.auth',
200
    'django.core.context_processors.debug',
201
    'django.core.context_processors.i18n',
202
    'django.core.context_processors.media',
203
    'django.core.context_processors.static',
204
    'django.core.context_processors.tz',
205
#    'django.core.context_processors.request',
206
    'django.contrib.messages.context_processors.messages',
207
)
208

    
209
# Output to use in template system for invalid (e.g. misspelled) variables.
210
TEMPLATE_STRING_IF_INVALID = ''
211

    
212
# Default email address to use for various automated correspondence from
213
# the site managers.
214
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
215

    
216
# Subject-line prefix for email messages send with django.core.mail.mail_admins
217
# or ...mail_managers.  Make sure to include the trailing space.
218
EMAIL_SUBJECT_PREFIX = '[Django] '
219

    
220
# Whether to append trailing slashes to URLs.
221
APPEND_SLASH = True
222

    
223
# Whether to prepend the "www." subdomain to URLs that don't have it.
224
PREPEND_WWW = False
225

    
226
# Override the server-derived value of SCRIPT_NAME
227
FORCE_SCRIPT_NAME = None
228

    
229
# List of compiled regular expression objects representing User-Agent strings
230
# that are not allowed to visit any page, systemwide. Use this for bad
231
# robots/crawlers. Here are a few examples:
232
#     import re
233
#     DISALLOWED_USER_AGENTS = (
234
#         re.compile(r'^NaverBot.*'),
235
#         re.compile(r'^EmailSiphon.*'),
236
#         re.compile(r'^SiteSucker.*'),
237
#         re.compile(r'^sohu-search')
238
#     )
239
DISALLOWED_USER_AGENTS = ()
240

    
241
ABSOLUTE_URL_OVERRIDES = {}
242

    
243
# Tuple of strings representing allowed prefixes for the {% ssi %} tag.
244
# Example: ('/home/html', '/var/www')
245
ALLOWED_INCLUDE_ROOTS = ()
246

    
247
# If this is a admin settings module, this should be a list of
248
# settings modules (in the format 'foo.bar.baz') for which this admin
249
# is an admin.
250
ADMIN_FOR = ()
251

    
252
# List of compiled regular expression objects representing URLs that need not
253
# be reported when SEND_BROKEN_LINK_EMAILS is True. Here are a few examples:
254
#    import re
255
#    IGNORABLE_404_URLS = (
256
#        re.compile(r'^/apple-touch-icon.*\.png$'),
257
#        re.compile(r'^/favicon.ico$),
258
#        re.compile(r'^/robots.txt$),
259
#        re.compile(r'^/phpmyadmin/),
260
#        re.compile(r'\.(cgi|php|pl)$'),
261
#    )
262
IGNORABLE_404_URLS = ()
263

    
264
# A secret key for this particular Django installation. Used in secret-key
265
# hashing algorithms. Set this in your settings, or Django will complain
266
# loudly.
267
SECRET_KEY = ''
268

    
269
# Default file storage mechanism that holds media.
270
DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
271

    
272
# Absolute filesystem path to the directory that will hold user-uploaded files.
273
# Example: "/home/media/media.lawrence.com/media/"
274
MEDIA_ROOT = ''
275

    
276
# URL that handles the media served from MEDIA_ROOT.
277
# Example: "http://media.lawrence.com/media/"
278
MEDIA_URL = ''
279

    
280
# Absolute path to the directory that holds static files.
281
# Example: "/home/media/media.lawrence.com/static/"
282
STATIC_ROOT = ''
283

    
284
# URL that handles the static files served from STATIC_ROOT.
285
# Example: "http://media.lawrence.com/static/"
286
STATIC_URL = None
287

    
288
# List of upload handler classes to be applied in order.
289
FILE_UPLOAD_HANDLERS = (
290
    'django.core.files.uploadhandler.MemoryFileUploadHandler',
291
    'django.core.files.uploadhandler.TemporaryFileUploadHandler',
292
)
293

    
294
# Maximum size, in bytes, of a request before it will be streamed to the
295
# file system instead of into memory.
296
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
297

    
298
# Directory in which upload streamed files will be temporarily saved. A value of
299
# `None` will make Django use the operating system's default temporary directory
300
# (i.e. "/tmp" on *nix systems).
301
FILE_UPLOAD_TEMP_DIR = None
302

    
303
# The numeric mode to set newly-uploaded files to. The value should be a mode
304
# you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html.
305
FILE_UPLOAD_PERMISSIONS = None
306

    
307
# Python module path where user will place custom format definition.
308
# The directory where this setting is pointing should contain subdirectories
309
# named as the locales, containing a formats.py file
310
# (i.e. "myproject.locale" for myproject/locale/en/formats.py etc. use)
311
FORMAT_MODULE_PATH = None
312

    
313
# Default formatting for date objects. See all available format strings here:
314
# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
315
DATE_FORMAT = 'N j, Y'
316

    
317
# Default formatting for datetime objects. See all available format strings here:
318
# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
319
DATETIME_FORMAT = 'N j, Y, P'
320

    
321
# Default formatting for time objects. See all available format strings here:
322
# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
323
TIME_FORMAT = 'P'
324

    
325
# Default formatting for date objects when only the year and month are relevant.
326
# See all available format strings here:
327
# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
328
YEAR_MONTH_FORMAT = 'F Y'
329

    
330
# Default formatting for date objects when only the month and day are relevant.
331
# See all available format strings here:
332
# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
333
MONTH_DAY_FORMAT = 'F j'
334

    
335
# Default short formatting for date objects. See all available format strings here:
336
# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
337
SHORT_DATE_FORMAT = 'm/d/Y'
338

    
339
# Default short formatting for datetime objects.
340
# See all available format strings here:
341
# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
342
SHORT_DATETIME_FORMAT = 'm/d/Y P'
343

    
344
# Default formats to be used when parsing dates from input boxes, in order
345
# See all available format string here:
346
# http://docs.python.org/library/datetime.html#strftime-behavior
347
# * Note that these format strings are different from the ones to display dates
348
DATE_INPUT_FORMATS = (
349
    '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
350
    '%b %d %Y', '%b %d, %Y',            # 'Oct 25 2006', 'Oct 25, 2006'
351
    '%d %b %Y', '%d %b, %Y',            # '25 Oct 2006', '25 Oct, 2006'
352
    '%B %d %Y', '%B %d, %Y',            # 'October 25 2006', 'October 25, 2006'
353
    '%d %B %Y', '%d %B, %Y',            # '25 October 2006', '25 October, 2006'
354
)
355

    
356
# Default formats to be used when parsing times from input boxes, in order
357
# See all available format string here:
358
# http://docs.python.org/library/datetime.html#strftime-behavior
359
# * Note that these format strings are different from the ones to display dates
360
TIME_INPUT_FORMATS = (
361
    '%H:%M:%S',     # '14:30:59'
362
    '%H:%M',        # '14:30'
363
)
364

    
365
# Default formats to be used when parsing dates and times from input boxes,
366
# in order
367
# See all available format string here:
368
# http://docs.python.org/library/datetime.html#strftime-behavior
369
# * Note that these format strings are different from the ones to display dates
370
DATETIME_INPUT_FORMATS = (
371
    '%Y-%m-%d %H:%M:%S',     # '2006-10-25 14:30:59'
372
    '%Y-%m-%d %H:%M:%S.%f',  # '2006-10-25 14:30:59.000200'
373
    '%Y-%m-%d %H:%M',        # '2006-10-25 14:30'
374
    '%Y-%m-%d',              # '2006-10-25'
375
    '%m/%d/%Y %H:%M:%S',     # '10/25/2006 14:30:59'
376
    '%m/%d/%Y %H:%M:%S.%f',  # '10/25/2006 14:30:59.000200'
377
    '%m/%d/%Y %H:%M',        # '10/25/2006 14:30'
378
    '%m/%d/%Y',              # '10/25/2006'
379
    '%m/%d/%y %H:%M:%S',     # '10/25/06 14:30:59'
380
    '%m/%d/%y %H:%M:%S.%f',  # '10/25/06 14:30:59.000200'
381
    '%m/%d/%y %H:%M',        # '10/25/06 14:30'
382
    '%m/%d/%y',              # '10/25/06'
383
)
384

    
385
# First day of week, to be used on calendars
386
# 0 means Sunday, 1 means Monday...
387
FIRST_DAY_OF_WEEK = 0
388

    
389
# Decimal separator symbol
390
DECIMAL_SEPARATOR = '.'
391

    
392
# Boolean that sets whether to add thousand separator when formatting numbers
393
USE_THOUSAND_SEPARATOR = False
394

    
395
# Number of digits that will be together, when splitting them by
396
# THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands...
397
NUMBER_GROUPING = 0
398

    
399
# Thousand separator symbol
400
THOUSAND_SEPARATOR = ','
401

    
402
# Do you want to manage transactions manually?
403
# Hint: you really don't!
404
TRANSACTIONS_MANAGED = False
405

    
406
# The User-Agent string to use when checking for URL validity through the
407
# isExistingURL validator.
408
from django import get_version
409
URL_VALIDATOR_USER_AGENT = "Django/%s (https://www.djangoproject.com)" % get_version()
410

    
411
# The tablespaces to use for each model when not specified otherwise.
412
DEFAULT_TABLESPACE = ''
413
DEFAULT_INDEX_TABLESPACE = ''
414

    
415
# Default X-Frame-Options header value
416
X_FRAME_OPTIONS = 'SAMEORIGIN'
417

    
418
USE_X_FORWARDED_HOST = False
419

    
420
# The Python dotted path to the WSGI application that Django's internal servers
421
# (runserver, runfcgi) will use. If `None`, the return value of
422
# 'django.core.wsgi.get_wsgi_application' is used, thus preserving the same
423
# behavior as previous versions of Django. Otherwise this should point to an
424
# actual WSGI application object.
425
WSGI_APPLICATION = None
426

    
427
# If your Django app is behind a proxy that sets a header to specify secure
428
# connections, AND that proxy ensures that user-submitted headers with the
429
# same name are ignored (so that people can't spoof it), set this value to
430
# a tuple of (header_name, header_value). For any requests that come in with
431
# that header/value, request.is_secure() will return True.
432
# WARNING! Only set this if you fully understand what you're doing. Otherwise,
433
# you may be opening yourself up to a security risk.
434
SECURE_PROXY_SSL_HEADER = None
435

    
436
##############
437
# MIDDLEWARE #
438
##############
439

    
440
# List of middleware classes to use.  Order is important; in the request phase,
441
# this middleware classes will be applied in the order given, and in the
442
# response phase the middleware will be applied in reverse order.
443
MIDDLEWARE_CLASSES = (
444
    'django.middleware.common.CommonMiddleware',
445
    'django.contrib.sessions.middleware.SessionMiddleware',
446
    'django.middleware.csrf.CsrfViewMiddleware',
447
    'django.contrib.auth.middleware.AuthenticationMiddleware',
448
    'django.contrib.messages.middleware.MessageMiddleware',
449
#     'django.middleware.http.ConditionalGetMiddleware',
450
#     'django.middleware.gzip.GZipMiddleware',
451
)
452

    
453
############
454
# SESSIONS #
455
############
456

    
457
SESSION_COOKIE_NAME = 'sessionid'                       # Cookie name. This can be whatever you want.
458
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2               # Age of cookie, in seconds (default: 2 weeks).
459
SESSION_COOKIE_DOMAIN = None                            # A string like ".lawrence.com", or None for standard domain cookie.
460
SESSION_COOKIE_SECURE = False                           # Whether the session cookie should be secure (https:// only).
461
SESSION_COOKIE_PATH = '/'                               # The path of the session cookie.
462
SESSION_COOKIE_HTTPONLY = True                          # Whether to use the non-RFC standard httpOnly flag (IE, FF3+, others)
463
SESSION_SAVE_EVERY_REQUEST = False                      # Whether to save the session data on every request.
464
SESSION_EXPIRE_AT_BROWSER_CLOSE = False                 # Whether a user's session cookie expires when the Web browser is closed.
465
SESSION_ENGINE = 'django.contrib.sessions.backends.db'  # The module to store session data
466
SESSION_FILE_PATH = None                                # Directory to store session files if using the file session module. If None, the backend will use a sensible default.
467

    
468
#########
469
# CACHE #
470
#########
471

    
472
# New format
473
CACHES = {
474
}
475
# The cache backend to use.  See the docstring in django.core.cache for the
476
# possible values.
477
CACHE_MIDDLEWARE_KEY_PREFIX = ''
478
CACHE_MIDDLEWARE_SECONDS = 600
479
CACHE_MIDDLEWARE_ALIAS = 'default'
480

    
481
####################
482
# COMMENTS         #
483
####################
484

    
485
COMMENTS_ALLOW_PROFANITIES = False
486

    
487
# The profanities that will trigger a validation error in
488
# CommentDetailsForm.clean_comment. All of these should be in lowercase.
489
PROFANITIES_LIST = ()
490

    
491
##################
492
# AUTHENTICATION #
493
##################
494

    
495
AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
496

    
497
LOGIN_URL = '/accounts/login/'
498

    
499
LOGOUT_URL = '/accounts/logout/'
500

    
501
LOGIN_REDIRECT_URL = '/accounts/profile/'
502

    
503
# The number of days a password reset link is valid for
504
PASSWORD_RESET_TIMEOUT_DAYS = 3
505

    
506
# the first hasher in this list is the preferred algorithm.  any
507
# password using different algorithms will be converted automatically
508
# upon login
509
PASSWORD_HASHERS = (
510
    'django.contrib.auth.hashers.PBKDF2PasswordHasher',
511
    'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
512
    'django.contrib.auth.hashers.BCryptPasswordHasher',
513
    'django.contrib.auth.hashers.SHA1PasswordHasher',
514
    'django.contrib.auth.hashers.MD5PasswordHasher',
515
    'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
516
    'django.contrib.auth.hashers.CryptPasswordHasher',
517
)
518

    
519
###########
520
# SIGNING #
521
###########
522

    
523
SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
524

    
525
########
526
# CSRF #
527
########
528

    
529
# Dotted path to callable to be used as view when a request is
530
# rejected by the CSRF middleware.
531
CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
532

    
533
# Settings for CSRF cookie.
534
CSRF_COOKIE_NAME = 'csrftoken'
535
CSRF_COOKIE_DOMAIN = None
536
CSRF_COOKIE_PATH = '/'
537
CSRF_COOKIE_SECURE = False
538

    
539
############
540
# MESSAGES #
541
############
542

    
543
# Class to use as messages backend
544
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
545

    
546
# Default values of MESSAGE_LEVEL and MESSAGE_TAGS are defined within
547
# django.contrib.messages to avoid imports in this settings file.
548

    
549
###########
550
# LOGGING #
551
###########
552

    
553
# The callable to use to configure logging
554
LOGGING_CONFIG = 'django.utils.log.dictConfig'
555

    
556
# The default logging configuration. This sends an email to
557
# the site admins on every HTTP 500 error. All other log
558
# records are sent to the bit bucket.
559

    
560
LOGGING = {
561
    'version': 1,
562
    'disable_existing_loggers': False,
563
    'filters': {
564
        'require_debug_false': {
565
            '()': 'django.utils.log.RequireDebugFalse',
566
        }
567
    },
568
    'handlers': {
569
        'mail_admins': {
570
            'level': 'ERROR',
571
            'filters': ['require_debug_false'],
572
            'class': 'django.utils.log.AdminEmailHandler'
573
        }
574
    },
575
    'loggers': {
576
        'django.request': {
577
            'handlers': ['mail_admins'],
578
            'level': 'ERROR',
579
            'propagate': True,
580
        },
581
    }
582
}
583

    
584
# Default exception reporter filter class used in case none has been
585
# specifically assigned to the HttpRequest instance.
586
DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
587

    
588
###########
589
# TESTING #
590
###########
591

    
592
# The name of the class to use to run the test suite
593
TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
594

    
595
############
596
# FIXTURES #
597
############
598

    
599
# The list of directories to search for fixtures
600
FIXTURE_DIRS = ()
601

    
602
###############
603
# STATICFILES #
604
###############
605

    
606
# A list of locations of additional static files
607
STATICFILES_DIRS = ()
608

    
609
# The default file storage backend used during the build process
610
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
611

    
612
# List of finder classes that know how to find static files in
613
# various locations.
614
STATICFILES_FINDERS = (
615
    'django.contrib.staticfiles.finders.FileSystemFinder',
616
    'django.contrib.staticfiles.finders.AppDirectoriesFinder',
617
#    'django.contrib.staticfiles.finders.DefaultStorageFinder',
618
)