PageRenderTime 48ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/django/conf/global_settings.py

https://github.com/insane/django
Python | 605 lines | 396 code | 59 blank | 150 comment | 0 complexity | 0c92f16c8253f4faa8f84260814f451d MD5 | raw file
Possible License(s): BSD-3-Clause
  1. # Default Django settings. Override these with settings in the module
  2. # pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
  3. # This is defined here as a do-nothing function because we can't import
  4. # django.utils.translation -- that module depends on the settings.
  5. gettext_noop = lambda s: s
  6. ####################
  7. # CORE #
  8. ####################
  9. DEBUG = False
  10. TEMPLATE_DEBUG = False
  11. # Whether the framework should propagate raw exceptions rather than catching
  12. # them. This is useful under some testing situations and should never be used
  13. # on a live site.
  14. DEBUG_PROPAGATE_EXCEPTIONS = False
  15. # Whether to use the "Etag" header. This saves bandwidth but slows down performance.
  16. USE_ETAGS = False
  17. # People who get code error notifications.
  18. # In the format (('Full Name', 'email@example.com'), ('Full Name', 'anotheremail@example.com'))
  19. ADMINS = ()
  20. # Tuple of IP addresses, as strings, that:
  21. # * See debug comments, when DEBUG is true
  22. # * Receive x-headers
  23. INTERNAL_IPS = ()
  24. # Hosts/domain names that are valid for this site.
  25. # "*" matches anything, ".example.com" matches example.com and all subdomains
  26. ALLOWED_HOSTS = []
  27. # Local time zone for this installation. All choices can be found here:
  28. # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
  29. # systems may support all possibilities). When USE_TZ is True, this is
  30. # interpreted as the default user time zone.
  31. TIME_ZONE = 'America/Chicago'
  32. # If you set this to True, Django will use timezone-aware datetimes.
  33. USE_TZ = False
  34. # Language code for this installation. All choices can be found here:
  35. # http://www.i18nguy.com/unicode/language-identifiers.html
  36. LANGUAGE_CODE = 'en-us'
  37. # Languages we provide translations for, out of the box.
  38. LANGUAGES = (
  39. ('af', gettext_noop('Afrikaans')),
  40. ('ar', gettext_noop('Arabic')),
  41. ('az', gettext_noop('Azerbaijani')),
  42. ('bg', gettext_noop('Bulgarian')),
  43. ('be', gettext_noop('Belarusian')),
  44. ('bn', gettext_noop('Bengali')),
  45. ('br', gettext_noop('Breton')),
  46. ('bs', gettext_noop('Bosnian')),
  47. ('ca', gettext_noop('Catalan')),
  48. ('cs', gettext_noop('Czech')),
  49. ('cy', gettext_noop('Welsh')),
  50. ('da', gettext_noop('Danish')),
  51. ('de', gettext_noop('German')),
  52. ('el', gettext_noop('Greek')),
  53. ('en', gettext_noop('English')),
  54. ('en-gb', gettext_noop('British English')),
  55. ('eo', gettext_noop('Esperanto')),
  56. ('es', gettext_noop('Spanish')),
  57. ('es-ar', gettext_noop('Argentinian Spanish')),
  58. ('es-mx', gettext_noop('Mexican Spanish')),
  59. ('es-ni', gettext_noop('Nicaraguan Spanish')),
  60. ('es-ve', gettext_noop('Venezuelan Spanish')),
  61. ('et', gettext_noop('Estonian')),
  62. ('eu', gettext_noop('Basque')),
  63. ('fa', gettext_noop('Persian')),
  64. ('fi', gettext_noop('Finnish')),
  65. ('fr', gettext_noop('French')),
  66. ('fy-nl', gettext_noop('Frisian')),
  67. ('ga', gettext_noop('Irish')),
  68. ('gl', gettext_noop('Galician')),
  69. ('he', gettext_noop('Hebrew')),
  70. ('hi', gettext_noop('Hindi')),
  71. ('hr', gettext_noop('Croatian')),
  72. ('hu', gettext_noop('Hungarian')),
  73. ('ia', gettext_noop('Interlingua')),
  74. ('id', gettext_noop('Indonesian')),
  75. ('is', gettext_noop('Icelandic')),
  76. ('it', gettext_noop('Italian')),
  77. ('ja', gettext_noop('Japanese')),
  78. ('ka', gettext_noop('Georgian')),
  79. ('kk', gettext_noop('Kazakh')),
  80. ('km', gettext_noop('Khmer')),
  81. ('kn', gettext_noop('Kannada')),
  82. ('ko', gettext_noop('Korean')),
  83. ('lb', gettext_noop('Luxembourgish')),
  84. ('lt', gettext_noop('Lithuanian')),
  85. ('lv', gettext_noop('Latvian')),
  86. ('mk', gettext_noop('Macedonian')),
  87. ('ml', gettext_noop('Malayalam')),
  88. ('mn', gettext_noop('Mongolian')),
  89. ('my', gettext_noop('Burmese')),
  90. ('nb', gettext_noop('Norwegian Bokmal')),
  91. ('ne', gettext_noop('Nepali')),
  92. ('nl', gettext_noop('Dutch')),
  93. ('nn', gettext_noop('Norwegian Nynorsk')),
  94. ('os', gettext_noop('Ossetic')),
  95. ('pa', gettext_noop('Punjabi')),
  96. ('pl', gettext_noop('Polish')),
  97. ('pt', gettext_noop('Portuguese')),
  98. ('pt-br', gettext_noop('Brazilian Portuguese')),
  99. ('ro', gettext_noop('Romanian')),
  100. ('ru', gettext_noop('Russian')),
  101. ('sk', gettext_noop('Slovak')),
  102. ('sl', gettext_noop('Slovenian')),
  103. ('sq', gettext_noop('Albanian')),
  104. ('sr', gettext_noop('Serbian')),
  105. ('sr-latn', gettext_noop('Serbian Latin')),
  106. ('sv', gettext_noop('Swedish')),
  107. ('sw', gettext_noop('Swahili')),
  108. ('ta', gettext_noop('Tamil')),
  109. ('te', gettext_noop('Telugu')),
  110. ('th', gettext_noop('Thai')),
  111. ('tr', gettext_noop('Turkish')),
  112. ('tt', gettext_noop('Tatar')),
  113. ('udm', gettext_noop('Udmurt')),
  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. # Languages using BiDi (right-to-left) layout
  121. LANGUAGES_BIDI = ("he", "ar", "fa", "ur")
  122. # If you set this to False, Django will make some optimizations so as not
  123. # to load the internationalization machinery.
  124. USE_I18N = True
  125. LOCALE_PATHS = ()
  126. LANGUAGE_COOKIE_NAME = 'django_language'
  127. # If you set this to True, Django will format dates, numbers and calendars
  128. # according to user current locale.
  129. USE_L10N = False
  130. # Not-necessarily-technical managers of the site. They get broken link
  131. # notifications and other various emails.
  132. MANAGERS = ADMINS
  133. # Default content type and charset to use for all HttpResponse objects, if a
  134. # MIME type isn't manually specified. These are used to construct the
  135. # Content-Type header.
  136. DEFAULT_CONTENT_TYPE = 'text/html'
  137. DEFAULT_CHARSET = 'utf-8'
  138. # Encoding of files read from disk (template and initial SQL files).
  139. FILE_CHARSET = 'utf-8'
  140. # Email address that error messages come from.
  141. SERVER_EMAIL = 'root@localhost'
  142. # Whether to send broken-link emails. Deprecated, must be removed in 1.8.
  143. SEND_BROKEN_LINK_EMAILS = False
  144. # Database connection info. If left empty, will default to the dummy backend.
  145. DATABASES = {}
  146. # Classes used to implement DB routing behavior.
  147. DATABASE_ROUTERS = []
  148. # The email backend to use. For possible shortcuts see django.core.mail.
  149. # The default is to use the SMTP backend.
  150. # Third-party backends can be specified by providing a Python path
  151. # to a module that defines an EmailBackend class.
  152. EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
  153. # Host for sending email.
  154. EMAIL_HOST = 'localhost'
  155. # Port for sending email.
  156. EMAIL_PORT = 25
  157. # Optional SMTP authentication information for EMAIL_HOST.
  158. EMAIL_HOST_USER = ''
  159. EMAIL_HOST_PASSWORD = ''
  160. EMAIL_USE_TLS = False
  161. EMAIL_USE_SSL = False
  162. # List of strings representing installed apps.
  163. INSTALLED_APPS = ()
  164. # List of locations of the template source files, in search order.
  165. TEMPLATE_DIRS = ()
  166. # List of callables that know how to import templates from various sources.
  167. # See the comments in django/core/template/loader.py for interface
  168. # documentation.
  169. TEMPLATE_LOADERS = (
  170. 'django.template.loaders.filesystem.Loader',
  171. 'django.template.loaders.app_directories.Loader',
  172. # 'django.template.loaders.eggs.Loader',
  173. )
  174. # List of processors used by RequestContext to populate the context.
  175. # Each one should be a callable that takes the request object as its
  176. # only parameter and returns a dictionary to add to the context.
  177. TEMPLATE_CONTEXT_PROCESSORS = (
  178. 'django.contrib.auth.context_processors.auth',
  179. 'django.core.context_processors.debug',
  180. 'django.core.context_processors.i18n',
  181. 'django.core.context_processors.media',
  182. 'django.core.context_processors.static',
  183. 'django.core.context_processors.tz',
  184. # 'django.core.context_processors.request',
  185. 'django.contrib.messages.context_processors.messages',
  186. )
  187. # Output to use in template system for invalid (e.g. misspelled) variables.
  188. TEMPLATE_STRING_IF_INVALID = ''
  189. # Default email address to use for various automated correspondence from
  190. # the site managers.
  191. DEFAULT_FROM_EMAIL = 'webmaster@localhost'
  192. # Subject-line prefix for email messages send with django.core.mail.mail_admins
  193. # or ...mail_managers. Make sure to include the trailing space.
  194. EMAIL_SUBJECT_PREFIX = '[Django] '
  195. # Whether to append trailing slashes to URLs.
  196. APPEND_SLASH = True
  197. # Whether to prepend the "www." subdomain to URLs that don't have it.
  198. PREPEND_WWW = False
  199. # Override the server-derived value of SCRIPT_NAME
  200. FORCE_SCRIPT_NAME = None
  201. # List of compiled regular expression objects representing User-Agent strings
  202. # that are not allowed to visit any page, systemwide. Use this for bad
  203. # robots/crawlers. Here are a few examples:
  204. # import re
  205. # DISALLOWED_USER_AGENTS = (
  206. # re.compile(r'^NaverBot.*'),
  207. # re.compile(r'^EmailSiphon.*'),
  208. # re.compile(r'^SiteSucker.*'),
  209. # re.compile(r'^sohu-search')
  210. # )
  211. DISALLOWED_USER_AGENTS = ()
  212. ABSOLUTE_URL_OVERRIDES = {}
  213. # Tuple of strings representing allowed prefixes for the {% ssi %} tag.
  214. # Example: ('/home/html', '/var/www')
  215. ALLOWED_INCLUDE_ROOTS = ()
  216. # If this is a admin settings module, this should be a list of
  217. # settings modules (in the format 'foo.bar.baz') for which this admin
  218. # is an admin.
  219. ADMIN_FOR = ()
  220. # List of compiled regular expression objects representing URLs that need not
  221. # be reported by BrokenLinkEmailsMiddleware. Here are a few examples:
  222. # import re
  223. # IGNORABLE_404_URLS = (
  224. # re.compile(r'^/apple-touch-icon.*\.png$'),
  225. # re.compile(r'^/favicon.ico$),
  226. # re.compile(r'^/robots.txt$),
  227. # re.compile(r'^/phpmyadmin/),
  228. # re.compile(r'\.(cgi|php|pl)$'),
  229. # )
  230. IGNORABLE_404_URLS = ()
  231. # A secret key for this particular Django installation. Used in secret-key
  232. # hashing algorithms. Set this in your settings, or Django will complain
  233. # loudly.
  234. SECRET_KEY = ''
  235. # Default file storage mechanism that holds media.
  236. DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
  237. # Absolute filesystem path to the directory that will hold user-uploaded files.
  238. # Example: "/var/www/example.com/media/"
  239. MEDIA_ROOT = ''
  240. # URL that handles the media served from MEDIA_ROOT.
  241. # Examples: "http://example.com/media/", "http://media.example.com/"
  242. MEDIA_URL = ''
  243. # Absolute path to the directory static files should be collected to.
  244. # Example: "/var/www/example.com/static/"
  245. STATIC_ROOT = ''
  246. # URL that handles the static files served from STATIC_ROOT.
  247. # Example: "http://example.com/static/", "http://static.example.com/"
  248. STATIC_URL = None
  249. # List of upload handler classes to be applied in order.
  250. FILE_UPLOAD_HANDLERS = (
  251. 'django.core.files.uploadhandler.MemoryFileUploadHandler',
  252. 'django.core.files.uploadhandler.TemporaryFileUploadHandler',
  253. )
  254. # Maximum size, in bytes, of a request before it will be streamed to the
  255. # file system instead of into memory.
  256. FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
  257. # Directory in which upload streamed files will be temporarily saved. A value of
  258. # `None` will make Django use the operating system's default temporary directory
  259. # (i.e. "/tmp" on *nix systems).
  260. FILE_UPLOAD_TEMP_DIR = None
  261. # The numeric mode to set newly-uploaded files to. The value should be a mode
  262. # you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html.
  263. FILE_UPLOAD_PERMISSIONS = None
  264. # Python module path where user will place custom format definition.
  265. # The directory where this setting is pointing should contain subdirectories
  266. # named as the locales, containing a formats.py file
  267. # (i.e. "myproject.locale" for myproject/locale/en/formats.py etc. use)
  268. FORMAT_MODULE_PATH = None
  269. # Default formatting for date objects. See all available format strings here:
  270. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  271. DATE_FORMAT = 'N j, Y'
  272. # Default formatting for datetime objects. See all available format strings here:
  273. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  274. DATETIME_FORMAT = 'N j, Y, P'
  275. # Default formatting for time objects. See all available format strings here:
  276. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  277. TIME_FORMAT = 'P'
  278. # Default formatting for date objects when only the year and month are relevant.
  279. # See all available format strings here:
  280. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  281. YEAR_MONTH_FORMAT = 'F Y'
  282. # Default formatting for date objects when only the month and day are relevant.
  283. # See all available format strings here:
  284. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  285. MONTH_DAY_FORMAT = 'F j'
  286. # Default short formatting for date objects. See all available format strings here:
  287. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  288. SHORT_DATE_FORMAT = 'm/d/Y'
  289. # Default short formatting for datetime objects.
  290. # See all available format strings here:
  291. # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
  292. SHORT_DATETIME_FORMAT = 'm/d/Y P'
  293. # Default formats to be used when parsing dates from input boxes, in order
  294. # See all available format string here:
  295. # http://docs.python.org/library/datetime.html#strftime-behavior
  296. # * Note that these format strings are different from the ones to display dates
  297. DATE_INPUT_FORMATS = (
  298. '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
  299. '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
  300. '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
  301. '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
  302. '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
  303. )
  304. # Default formats to be used when parsing times from input boxes, in order
  305. # See all available format string here:
  306. # http://docs.python.org/library/datetime.html#strftime-behavior
  307. # * Note that these format strings are different from the ones to display dates
  308. TIME_INPUT_FORMATS = (
  309. '%H:%M:%S', # '14:30:59'
  310. '%H:%M:%S.%f', # '14:30:59.000200'
  311. '%H:%M', # '14:30'
  312. )
  313. # Default formats to be used when parsing dates and times from input boxes,
  314. # in order
  315. # See all available format string here:
  316. # http://docs.python.org/library/datetime.html#strftime-behavior
  317. # * Note that these format strings are different from the ones to display dates
  318. DATETIME_INPUT_FORMATS = (
  319. '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
  320. '%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
  321. '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
  322. '%Y-%m-%d', # '2006-10-25'
  323. '%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
  324. '%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
  325. '%m/%d/%Y %H:%M', # '10/25/2006 14:30'
  326. '%m/%d/%Y', # '10/25/2006'
  327. '%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
  328. '%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
  329. '%m/%d/%y %H:%M', # '10/25/06 14:30'
  330. '%m/%d/%y', # '10/25/06'
  331. )
  332. # First day of week, to be used on calendars
  333. # 0 means Sunday, 1 means Monday...
  334. FIRST_DAY_OF_WEEK = 0
  335. # Decimal separator symbol
  336. DECIMAL_SEPARATOR = '.'
  337. # Boolean that sets whether to add thousand separator when formatting numbers
  338. USE_THOUSAND_SEPARATOR = False
  339. # Number of digits that will be together, when splitting them by
  340. # THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands...
  341. NUMBER_GROUPING = 0
  342. # Thousand separator symbol
  343. THOUSAND_SEPARATOR = ','
  344. # Do you want to manage transactions manually?
  345. # Hint: you really don't!
  346. TRANSACTIONS_MANAGED = False
  347. # The tablespaces to use for each model when not specified otherwise.
  348. DEFAULT_TABLESPACE = ''
  349. DEFAULT_INDEX_TABLESPACE = ''
  350. # Default X-Frame-Options header value
  351. X_FRAME_OPTIONS = 'SAMEORIGIN'
  352. USE_X_FORWARDED_HOST = False
  353. # The Python dotted path to the WSGI application that Django's internal servers
  354. # (runserver, runfcgi) will use. If `None`, the return value of
  355. # 'django.core.wsgi.get_wsgi_application' is used, thus preserving the same
  356. # behavior as previous versions of Django. Otherwise this should point to an
  357. # actual WSGI application object.
  358. WSGI_APPLICATION = None
  359. # If your Django app is behind a proxy that sets a header to specify secure
  360. # connections, AND that proxy ensures that user-submitted headers with the
  361. # same name are ignored (so that people can't spoof it), set this value to
  362. # a tuple of (header_name, header_value). For any requests that come in with
  363. # that header/value, request.is_secure() will return True.
  364. # WARNING! Only set this if you fully understand what you're doing. Otherwise,
  365. # you may be opening yourself up to a security risk.
  366. SECURE_PROXY_SSL_HEADER = None
  367. ##############
  368. # MIDDLEWARE #
  369. ##############
  370. # List of middleware classes to use. Order is important; in the request phase,
  371. # this middleware classes will be applied in the order given, and in the
  372. # response phase the middleware will be applied in reverse order.
  373. MIDDLEWARE_CLASSES = (
  374. 'django.middleware.common.CommonMiddleware',
  375. 'django.contrib.sessions.middleware.SessionMiddleware',
  376. 'django.middleware.csrf.CsrfViewMiddleware',
  377. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  378. 'django.contrib.messages.middleware.MessageMiddleware',
  379. # 'django.middleware.http.ConditionalGetMiddleware',
  380. # 'django.middleware.gzip.GZipMiddleware',
  381. )
  382. ############
  383. # SESSIONS #
  384. ############
  385. SESSION_CACHE_ALIAS = 'default' # Cache to store session data if using the cache session backend.
  386. SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want.
  387. SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks).
  388. SESSION_COOKIE_DOMAIN = None # A string like ".example.com", or None for standard domain cookie.
  389. SESSION_COOKIE_SECURE = False # Whether the session cookie should be secure (https:// only).
  390. SESSION_COOKIE_PATH = '/' # The path of the session cookie.
  391. SESSION_COOKIE_HTTPONLY = True # Whether to use the non-RFC standard httpOnly flag (IE, FF3+, others)
  392. SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request.
  393. SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether a user's session cookie expires when the Web browser is closed.
  394. SESSION_ENGINE = 'django.contrib.sessions.backends.db' # The module to store session data
  395. SESSION_FILE_PATH = None # Directory to store session files if using the file session module. If None, the backend will use a sensible default.
  396. #########
  397. # CACHE #
  398. #########
  399. # The cache backends to use.
  400. CACHES = {
  401. 'default': {
  402. 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
  403. }
  404. }
  405. CACHE_MIDDLEWARE_KEY_PREFIX = ''
  406. CACHE_MIDDLEWARE_SECONDS = 600
  407. CACHE_MIDDLEWARE_ALIAS = 'default'
  408. ####################
  409. # COMMENTS #
  410. ####################
  411. COMMENTS_ALLOW_PROFANITIES = False
  412. # The profanities that will trigger a validation error in
  413. # CommentDetailsForm.clean_comment. All of these should be in lowercase.
  414. PROFANITIES_LIST = ()
  415. ##################
  416. # AUTHENTICATION #
  417. ##################
  418. AUTH_USER_MODEL = 'auth.User'
  419. AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
  420. LOGIN_URL = '/accounts/login/'
  421. LOGOUT_URL = '/accounts/logout/'
  422. LOGIN_REDIRECT_URL = '/accounts/profile/'
  423. # The number of days a password reset link is valid for
  424. PASSWORD_RESET_TIMEOUT_DAYS = 3
  425. # the first hasher in this list is the preferred algorithm. any
  426. # password using different algorithms will be converted automatically
  427. # upon login
  428. PASSWORD_HASHERS = (
  429. 'django.contrib.auth.hashers.PBKDF2PasswordHasher',
  430. 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
  431. 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
  432. 'django.contrib.auth.hashers.BCryptPasswordHasher',
  433. 'django.contrib.auth.hashers.SHA1PasswordHasher',
  434. 'django.contrib.auth.hashers.MD5PasswordHasher',
  435. 'django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher',
  436. 'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
  437. 'django.contrib.auth.hashers.CryptPasswordHasher',
  438. )
  439. ###########
  440. # SIGNING #
  441. ###########
  442. SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
  443. ########
  444. # CSRF #
  445. ########
  446. # Dotted path to callable to be used as view when a request is
  447. # rejected by the CSRF middleware.
  448. CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
  449. # Settings for CSRF cookie.
  450. CSRF_COOKIE_NAME = 'csrftoken'
  451. CSRF_COOKIE_DOMAIN = None
  452. CSRF_COOKIE_PATH = '/'
  453. CSRF_COOKIE_SECURE = False
  454. CSRF_COOKIE_HTTPONLY = False
  455. ############
  456. # MESSAGES #
  457. ############
  458. # Class to use as messages backend
  459. MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
  460. # Default values of MESSAGE_LEVEL and MESSAGE_TAGS are defined within
  461. # django.contrib.messages to avoid imports in this settings file.
  462. ###########
  463. # LOGGING #
  464. ###########
  465. # The callable to use to configure logging
  466. LOGGING_CONFIG = 'logging.config.dictConfig'
  467. # Custom logging configuration.
  468. LOGGING = {}
  469. # Default exception reporter filter class used in case none has been
  470. # specifically assigned to the HttpRequest instance.
  471. DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
  472. ###########
  473. # TESTING #
  474. ###########
  475. # The name of the class to use to run the test suite
  476. TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  477. ############
  478. # FIXTURES #
  479. ############
  480. # The list of directories to search for fixtures
  481. FIXTURE_DIRS = ()
  482. ###############
  483. # STATICFILES #
  484. ###############
  485. # A list of locations of additional static files
  486. STATICFILES_DIRS = ()
  487. # The default file storage backend used during the build process
  488. STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
  489. # List of finder classes that know how to find static files in
  490. # various locations.
  491. STATICFILES_FINDERS = (
  492. 'django.contrib.staticfiles.finders.FileSystemFinder',
  493. 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  494. # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
  495. )