|
21 | 21 | USE_ETAGS = False
|
22 | 22 |
|
23 | 23 | # People who get code error notifications.
|
24 |
| -# In the format (('Full Name', '[email protected]'), ('Full Name', '[email protected]')) |
25 |
| -ADMINS = () |
| 24 | +# In the format [('Full Name', '[email protected]'), ('Full Name', '[email protected]')] |
| 25 | +ADMINS = [] |
26 | 26 |
|
27 |
| -# Tuple of IP addresses, as strings, that: |
| 27 | +# List of IP addresses, as strings, that: |
28 | 28 | # * See debug comments, when DEBUG is true
|
29 | 29 | # * Receive x-headers
|
30 |
| -INTERNAL_IPS = () |
| 30 | +INTERNAL_IPS = [] |
31 | 31 |
|
32 | 32 | # Hosts/domain names that are valid for this site.
|
33 | 33 | # "*" matches anything, ".example.com" matches example.com and all subdomains
|
|
47 | 47 | LANGUAGE_CODE = 'en-us'
|
48 | 48 |
|
49 | 49 | # Languages we provide translations for, out of the box.
|
50 |
| -LANGUAGES = ( |
| 50 | +LANGUAGES = [ |
51 | 51 | ('af', gettext_noop('Afrikaans')),
|
52 | 52 | ('ar', gettext_noop('Arabic')),
|
53 | 53 | ('ast', gettext_noop('Asturian')),
|
|
132 | 132 | ('vi', gettext_noop('Vietnamese')),
|
133 | 133 | ('zh-hans', gettext_noop('Simplified Chinese')),
|
134 | 134 | ('zh-hant', gettext_noop('Traditional Chinese')),
|
135 |
| -) |
| 135 | +] |
136 | 136 |
|
137 | 137 | # Languages using BiDi (right-to-left) layout
|
138 |
| -LANGUAGES_BIDI = ("he", "ar", "fa", "ur") |
| 138 | +LANGUAGES_BIDI = ["he", "ar", "fa", "ur"] |
139 | 139 |
|
140 | 140 | # If you set this to False, Django will make some optimizations so as not
|
141 | 141 | # to load the internationalization machinery.
|
142 | 142 | USE_I18N = True
|
143 |
| -LOCALE_PATHS = () |
| 143 | +LOCALE_PATHS = [] |
144 | 144 |
|
145 | 145 | # Settings for language cookie
|
146 | 146 | LANGUAGE_COOKIE_NAME = 'django_language'
|
|
197 | 197 | EMAIL_TIMEOUT = None
|
198 | 198 |
|
199 | 199 | # List of strings representing installed apps.
|
200 |
| -INSTALLED_APPS = () |
| 200 | +INSTALLED_APPS = [] |
201 | 201 |
|
202 | 202 | # List of locations of the template source files, in search order.
|
203 |
| -TEMPLATE_DIRS = () |
| 203 | +TEMPLATE_DIRS = [] |
204 | 204 |
|
205 | 205 | # List of callables that know how to import templates from various sources.
|
206 | 206 | # See the comments in django/core/template/loader.py for interface
|
207 | 207 | # documentation.
|
208 |
| -TEMPLATE_LOADERS = ( |
| 208 | +TEMPLATE_LOADERS = [ |
209 | 209 | 'django.template.loaders.filesystem.Loader',
|
210 | 210 | 'django.template.loaders.app_directories.Loader',
|
211 | 211 | # 'django.template.loaders.eggs.Loader',
|
212 |
| -) |
| 212 | +] |
213 | 213 |
|
214 | 214 | # List of processors used by RequestContext to populate the context.
|
215 | 215 | # Each one should be a callable that takes the request object as its
|
216 | 216 | # only parameter and returns a dictionary to add to the context.
|
217 |
| -TEMPLATE_CONTEXT_PROCESSORS = ( |
| 217 | +TEMPLATE_CONTEXT_PROCESSORS = [ |
218 | 218 | 'django.contrib.auth.context_processors.auth',
|
219 | 219 | 'django.template.context_processors.debug',
|
220 | 220 | 'django.template.context_processors.i18n',
|
|
223 | 223 | 'django.template.context_processors.tz',
|
224 | 224 | # 'django.template.context_processors.request',
|
225 | 225 | 'django.contrib.messages.context_processors.messages',
|
226 |
| -) |
| 226 | +] |
227 | 227 |
|
228 | 228 | # Output to use in template system for invalid (e.g. misspelled) variables.
|
229 | 229 | TEMPLATE_STRING_IF_INVALID = ''
|
|
251 | 251 | # that are not allowed to visit any page, systemwide. Use this for bad
|
252 | 252 | # robots/crawlers. Here are a few examples:
|
253 | 253 | # import re
|
254 |
| -# DISALLOWED_USER_AGENTS = ( |
| 254 | +# DISALLOWED_USER_AGENTS = [ |
255 | 255 | # re.compile(r'^NaverBot.*'),
|
256 | 256 | # re.compile(r'^EmailSiphon.*'),
|
257 | 257 | # re.compile(r'^SiteSucker.*'),
|
258 | 258 | # re.compile(r'^sohu-search')
|
259 |
| -# ) |
260 |
| -DISALLOWED_USER_AGENTS = () |
| 259 | +# ] |
| 260 | +DISALLOWED_USER_AGENTS = [] |
261 | 261 |
|
262 | 262 | ABSOLUTE_URL_OVERRIDES = {}
|
263 | 263 |
|
264 |
| -# Tuple of strings representing allowed prefixes for the {% ssi %} tag. |
265 |
| -# Example: ('/home/html', '/var/www') |
266 |
| -ALLOWED_INCLUDE_ROOTS = () |
| 264 | +# List of strings representing allowed prefixes for the {% ssi %} tag. |
| 265 | +# Example: ['/home/html', '/var/www'] |
| 266 | +ALLOWED_INCLUDE_ROOTS = [] |
267 | 267 |
|
268 | 268 | # List of compiled regular expression objects representing URLs that need not
|
269 | 269 | # be reported by BrokenLinkEmailsMiddleware. Here are a few examples:
|
270 | 270 | # import re
|
271 |
| -# IGNORABLE_404_URLS = ( |
| 271 | +# IGNORABLE_404_URLS = [ |
272 | 272 | # re.compile(r'^/apple-touch-icon.*\.png$'),
|
273 | 273 | # re.compile(r'^/favicon.ico$),
|
274 | 274 | # re.compile(r'^/robots.txt$),
|
275 | 275 | # re.compile(r'^/phpmyadmin/),
|
276 | 276 | # re.compile(r'\.(cgi|php|pl)$'),
|
277 |
| -# ) |
278 |
| -IGNORABLE_404_URLS = () |
| 277 | +# ] |
| 278 | +IGNORABLE_404_URLS = [] |
279 | 279 |
|
280 | 280 | # A secret key for this particular Django installation. Used in secret-key
|
281 | 281 | # hashing algorithms. Set this in your settings, or Django will complain
|
|
302 | 302 | STATIC_URL = None
|
303 | 303 |
|
304 | 304 | # List of upload handler classes to be applied in order.
|
305 |
| -FILE_UPLOAD_HANDLERS = ( |
| 305 | +FILE_UPLOAD_HANDLERS = [ |
306 | 306 | 'django.core.files.uploadhandler.MemoryFileUploadHandler',
|
307 | 307 | 'django.core.files.uploadhandler.TemporaryFileUploadHandler',
|
308 |
| -) |
| 308 | +] |
309 | 309 |
|
310 | 310 | # Maximum size, in bytes, of a request before it will be streamed to the
|
311 | 311 | # file system instead of into memory.
|
|
366 | 366 | # See all available format string here:
|
367 | 367 | # http://docs.python.org/library/datetime.html#strftime-behavior
|
368 | 368 | # * Note that these format strings are different from the ones to display dates
|
369 |
| -DATE_INPUT_FORMATS = ( |
| 369 | +DATE_INPUT_FORMATS = [ |
370 | 370 | '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
|
371 | 371 | '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
|
372 | 372 | '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
|
373 | 373 | '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
|
374 | 374 | '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
|
375 |
| -) |
| 375 | +] |
376 | 376 |
|
377 | 377 | # Default formats to be used when parsing times from input boxes, in order
|
378 | 378 | # See all available format string here:
|
379 | 379 | # http://docs.python.org/library/datetime.html#strftime-behavior
|
380 | 380 | # * Note that these format strings are different from the ones to display dates
|
381 |
| -TIME_INPUT_FORMATS = ( |
| 381 | +TIME_INPUT_FORMATS = [ |
382 | 382 | '%H:%M:%S', # '14:30:59'
|
383 | 383 | '%H:%M:%S.%f', # '14:30:59.000200'
|
384 | 384 | '%H:%M', # '14:30'
|
385 |
| -) |
| 385 | +] |
386 | 386 |
|
387 | 387 | # Default formats to be used when parsing dates and times from input boxes,
|
388 | 388 | # in order
|
389 | 389 | # See all available format string here:
|
390 | 390 | # http://docs.python.org/library/datetime.html#strftime-behavior
|
391 | 391 | # * Note that these format strings are different from the ones to display dates
|
392 |
| -DATETIME_INPUT_FORMATS = ( |
| 392 | +DATETIME_INPUT_FORMATS = [ |
393 | 393 | '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
|
394 | 394 | '%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
|
395 | 395 | '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
|
|
402 | 402 | '%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
|
403 | 403 | '%m/%d/%y %H:%M', # '10/25/06 14:30'
|
404 | 404 | '%m/%d/%y', # '10/25/06'
|
405 |
| -) |
| 405 | +] |
406 | 406 |
|
407 | 407 | # First day of week, to be used on calendars
|
408 | 408 | # 0 means Sunday, 1 means Monday...
|
|
453 | 453 | # List of middleware classes to use. Order is important; in the request phase,
|
454 | 454 | # this middleware classes will be applied in the order given, and in the
|
455 | 455 | # response phase the middleware will be applied in reverse order.
|
456 |
| -MIDDLEWARE_CLASSES = ( |
| 456 | +MIDDLEWARE_CLASSES = [ |
457 | 457 | 'django.middleware.common.CommonMiddleware',
|
458 | 458 | 'django.middleware.csrf.CsrfViewMiddleware',
|
459 |
| -) |
| 459 | +] |
460 | 460 |
|
461 | 461 | ############
|
462 | 462 | # SESSIONS #
|
|
508 | 508 |
|
509 | 509 | AUTH_USER_MODEL = 'auth.User'
|
510 | 510 |
|
511 |
| -AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',) |
| 511 | +AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend'] |
512 | 512 |
|
513 | 513 | LOGIN_URL = '/accounts/login/'
|
514 | 514 |
|
|
522 | 522 | # the first hasher in this list is the preferred algorithm. any
|
523 | 523 | # password using different algorithms will be converted automatically
|
524 | 524 | # upon login
|
525 |
| -PASSWORD_HASHERS = ( |
| 525 | +PASSWORD_HASHERS = [ |
526 | 526 | 'django.contrib.auth.hashers.PBKDF2PasswordHasher',
|
527 | 527 | 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
|
528 | 528 | 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
|
|
532 | 532 | 'django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher',
|
533 | 533 | 'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
|
534 | 534 | 'django.contrib.auth.hashers.CryptPasswordHasher',
|
535 |
| -) |
| 535 | +] |
536 | 536 |
|
537 | 537 | ###########
|
538 | 538 | # SIGNING #
|
|
596 | 596 | ############
|
597 | 597 |
|
598 | 598 | # The list of directories to search for fixtures
|
599 |
| -FIXTURE_DIRS = () |
| 599 | +FIXTURE_DIRS = [] |
600 | 600 |
|
601 | 601 | ###############
|
602 | 602 | # STATICFILES #
|
603 | 603 | ###############
|
604 | 604 |
|
605 | 605 | # A list of locations of additional static files
|
606 |
| -STATICFILES_DIRS = () |
| 606 | +STATICFILES_DIRS = [] |
607 | 607 |
|
608 | 608 | # The default file storage backend used during the build process
|
609 | 609 | STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
|
610 | 610 |
|
611 | 611 | # List of finder classes that know how to find static files in
|
612 | 612 | # various locations.
|
613 |
| -STATICFILES_FINDERS = ( |
| 613 | +STATICFILES_FINDERS = [ |
614 | 614 | 'django.contrib.staticfiles.finders.FileSystemFinder',
|
615 | 615 | 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
616 | 616 | # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
|
617 |
| -) |
| 617 | +] |
618 | 618 |
|
619 | 619 | ##############
|
620 | 620 | # MIGRATIONS #
|
|
0 commit comments