PageRenderTime 47ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/django/conf/global_settings.py

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