settings.txt 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142
  1. ========
  2. Settings
  3. ========
  4. .. contents::
  5. :local:
  6. :depth: 1
  7. Available settings
  8. ==================
  9. Here's a full list of all available settings, in alphabetical order, and their
  10. default values.
  11. .. setting:: ABSOLUTE_URL_OVERRIDES
  12. ABSOLUTE_URL_OVERRIDES
  13. ----------------------
  14. Default: ``{}`` (Empty dictionary)
  15. A dictionary mapping ``"app_label.model_name"`` strings to functions that take
  16. a model object and return its URL. This is a way of overriding
  17. ``get_absolute_url()`` methods on a per-installation basis. Example::
  18. ABSOLUTE_URL_OVERRIDES = {
  19. 'blogs.weblog': lambda o: "/blogs/%s/" % o.slug,
  20. 'news.story': lambda o: "/stories/%s/%s/" % (o.pub_year, o.slug),
  21. }
  22. Note that the model name used in this setting should be all lower-case, regardless
  23. of the case of the actual model class name.
  24. .. setting:: ADMIN_FOR
  25. ADMIN_FOR
  26. ---------
  27. Default: ``()`` (Empty tuple)
  28. Used for admin-site settings modules, this should be a tuple of settings
  29. modules (in the format ``'foo.bar.baz'``) for which this site is an admin.
  30. The admin site uses this in its automatically-introspected documentation of
  31. models, views and template tags.
  32. .. setting:: ADMIN_MEDIA_PREFIX
  33. ADMIN_MEDIA_PREFIX
  34. ------------------
  35. Default: ``'/static/admin/'``
  36. The URL prefix for admin media -- CSS, JavaScript and images used by the Django
  37. administrative interface. Make sure to use a trailing slash, and to have this be
  38. different from the :setting:`MEDIA_URL` setting (since the same URL cannot be
  39. mapped onto two different sets of files). For integration with :doc:`staticfiles
  40. </ref/contrib/staticfiles>`, this should be the same as
  41. :setting:`STATIC_URL` followed by ``'admin/'``.
  42. .. setting:: ADMINS
  43. ADMINS
  44. ------
  45. Default: ``()`` (Empty tuple)
  46. A tuple that lists people who get code error notifications. When
  47. ``DEBUG=False`` and a view raises an exception, Django will email these people
  48. with the full exception information. Each member of the tuple should be a tuple
  49. of (Full name, email address). Example::
  50. (('John', 'john@example.com'), ('Mary', 'mary@example.com'))
  51. Note that Django will email *all* of these people whenever an error happens.
  52. See :doc:`/howto/error-reporting` for more information.
  53. .. setting:: ALLOWED_INCLUDE_ROOTS
  54. ALLOWED_INCLUDE_ROOTS
  55. ---------------------
  56. Default: ``()`` (Empty tuple)
  57. A tuple of strings representing allowed prefixes for the ``{% ssi %}`` template
  58. tag. This is a security measure, so that template authors can't access files
  59. that they shouldn't be accessing.
  60. For example, if :setting:`ALLOWED_INCLUDE_ROOTS` is ``('/home/html', '/var/www')``,
  61. then ``{% ssi /home/html/foo.txt %}`` would work, but ``{% ssi /etc/passwd %}``
  62. wouldn't.
  63. .. setting:: APPEND_SLASH
  64. APPEND_SLASH
  65. ------------
  66. Default: ``True``
  67. When set to ``True``, if the request URL does not match any of the patterns
  68. in the URLconf and it doesn't end in a slash, an HTTP redirect is issued to the
  69. same URL with a slash appended. Note that the redirect may cause any data
  70. submitted in a POST request to be lost.
  71. The :setting:`APPEND_SLASH` setting is only used if
  72. :class:`~django.middleware.common.CommonMiddleware` is installed
  73. (see :doc:`/topics/http/middleware`). See also :setting:`PREPEND_WWW`.
  74. .. setting:: AUTHENTICATION_BACKENDS
  75. AUTHENTICATION_BACKENDS
  76. -----------------------
  77. Default: ``('django.contrib.auth.backends.ModelBackend',)``
  78. A tuple of authentication backend classes (as strings) to use when attempting to
  79. authenticate a user. See the :doc:`authentication backends documentation
  80. </ref/authbackends>` for details.
  81. .. setting:: AUTH_PROFILE_MODULE
  82. AUTH_PROFILE_MODULE
  83. -------------------
  84. Default: Not defined
  85. The site-specific user profile model used by this site. See
  86. :ref:`auth-profiles`.
  87. .. setting:: CACHES
  88. CACHES
  89. ------
  90. .. versionadded:: 1.3
  91. Default::
  92. {
  93. 'default': {
  94. 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
  95. }
  96. }
  97. A dictionary containing the settings for all caches to be used with
  98. Django. It is a nested dictionary whose contents maps cache aliases
  99. to a dictionary containing the options for an individual cache.
  100. The :setting:`CACHES` setting must configure a ``default`` cache;
  101. any number of additional caches may also be specified. If you
  102. are using a cache backend other than the local memory cache, or
  103. you need to define multiple caches, other options will be required.
  104. The following cache options are available.
  105. .. setting:: CACHES-BACKEND
  106. BACKEND
  107. ~~~~~~~
  108. Default: ``''`` (Empty string)
  109. The cache backend to use. The built-in cache backends are:
  110. * ``'django.core.cache.backends.db.DatabaseCache'``
  111. * ``'django.core.cache.backends.dummy.DummyCache'``
  112. * ``'django.core.cache.backends.filebased.FileBasedCache'``
  113. * ``'django.core.cache.backends.locmem.LocMemCache'``
  114. * ``'django.core.cache.backends.memcached.MemcachedCache'``
  115. * ``'django.core.cache.backends.memcached.PyLibMCCache'``
  116. You can use a cache backend that doesn't ship with Django by setting
  117. :setting:`BACKEND <CACHE-BACKEND>` to a fully-qualified path of a cache
  118. backend class (i.e. ``mypackage.backends.whatever.WhateverCache``).
  119. Writing a whole new cache backend from scratch is left as an exercise
  120. to the reader; see the other backends for examples.
  121. .. note::
  122. Prior to Django 1.3, you could use a URI based version of the backend
  123. name to reference the built-in cache backends (e.g., you could use
  124. ``'db://tablename'`` to refer to the database backend). This format has
  125. been deprecated, and will be removed in Django 1.5.
  126. .. setting:: CACHES-KEY_FUNCTION
  127. KEY_FUNCTION
  128. ~~~~~~~~~~~~
  129. A string containing a dotted path to a function that defines how to
  130. compose a prefix, version and key into a final cache key. The default
  131. implementation is equivalent to the function::
  132. def make_key(key, key_prefix, version):
  133. return ':'.join([key_prefix, str(version), smart_str(key)])
  134. You may use any key function you want, as long as it has the same
  135. argument signature.
  136. See the :ref:`cache documentation <cache_key_transformation>` for more information.
  137. .. setting:: CACHES-KEY_PREFIX
  138. KEY_PREFIX
  139. ~~~~~~~~~~
  140. Default: ``''`` (Empty string)
  141. A string that will be automatically included (prepended by default) to
  142. all cache keys used by the Django server.
  143. See the :ref:`cache documentation <cache_key_prefixing>` for more information.
  144. .. setting:: CACHES-LOCATION
  145. LOCATION
  146. ~~~~~~~~
  147. Default: ``''`` (Empty string)
  148. The location of the cache to use. This might be the directory for a
  149. file system cache, a host and port for a memcache server, or simply an
  150. identifying name for a local memory cache. e.g.::
  151. CACHES = {
  152. 'default': {
  153. 'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
  154. 'LOCATION': '/var/tmp/django_cache',
  155. }
  156. }
  157. .. setting:: CACHES-OPTIONS
  158. OPTIONS
  159. ~~~~~~~
  160. Default: None
  161. Extra parameters to pass to the cache backend. Available parameters
  162. vary depending on your cache backend.
  163. Some information on available parameters can be found in the
  164. :doc:`Cache Backends </topics/cache>` documentation. For more information,
  165. consult your backend module's own documentation.
  166. .. setting:: CACHES-TIMEOUT
  167. TIMEOUT
  168. ~~~~~~~
  169. Default: 300
  170. The number of seconds before a cache entry is considered stale.
  171. .. setting:: CACHES-VERSION
  172. VERSION
  173. ~~~~~~~
  174. Default: ``1``
  175. The default version number for cache keys generated by the Django server.
  176. See the :ref:`cache documentation <cache_versioning>` for more information.
  177. .. setting:: CACHE_MIDDLEWARE_ALIAS
  178. CACHE_MIDDLEWARE_ALIAS
  179. ----------------------
  180. Default: ``default``
  181. The cache connection to use for the cache middleware.
  182. .. setting:: CACHE_MIDDLEWARE_ANONYMOUS_ONLY
  183. CACHE_MIDDLEWARE_ANONYMOUS_ONLY
  184. -------------------------------
  185. Default: ``False``
  186. If the value of this setting is ``True``, only anonymous requests (i.e., not
  187. those made by a logged-in user) will be cached. Otherwise, the middleware
  188. caches every page that doesn't have GET or POST parameters.
  189. If you set the value of this setting to ``True``, you should make sure you've
  190. activated ``AuthenticationMiddleware``.
  191. See :doc:`/topics/cache`.
  192. .. setting:: CACHE_MIDDLEWARE_KEY_PREFIX
  193. CACHE_MIDDLEWARE_KEY_PREFIX
  194. ---------------------------
  195. Default: ``''`` (Empty string)
  196. The cache key prefix that the cache middleware should use.
  197. See :doc:`/topics/cache`.
  198. .. setting:: CACHE_MIDDLEWARE_SECONDS
  199. CACHE_MIDDLEWARE_SECONDS
  200. ------------------------
  201. Default: ``600``
  202. The default number of seconds to cache a page when the caching middleware or
  203. ``cache_page()`` decorator is used.
  204. See :doc:`/topics/cache`.
  205. .. setting:: CSRF_COOKIE_DOMAIN
  206. CSRF_COOKIE_DOMAIN
  207. ------------------
  208. .. versionadded:: 1.2
  209. Default: ``None``
  210. The domain to be used when setting the CSRF cookie. This can be useful for
  211. easily allowing cross-subdomain requests to be exluded from the normal cross
  212. site request forgery protection. It should be set to a string such as
  213. ``".lawrence.com"`` to allow a POST request from a form on one subdomain to be
  214. accepted by accepted by a view served from another subdomain.
  215. Please note that the presence of this setting does not imply that Django's CSRF
  216. protection is safe from cross-subdomain attacks by default - please see the
  217. :ref:`CSRF limitations <csrf-limitations>` section.
  218. .. setting:: CSRF_COOKIE_NAME
  219. CSRF_COOKIE_NAME
  220. ----------------
  221. .. versionadded:: 1.2
  222. Default: ``'csrftoken'``
  223. The name of the cookie to use for the CSRF authentication token. This can be whatever you
  224. want. See :doc:`/ref/contrib/csrf`.
  225. .. setting:: CSRF_COOKIE_PATH
  226. CSRF_COOKIE_PATH
  227. ----------------
  228. .. versionadded:: 1.4
  229. Default: ``'/'``
  230. The path set on the CSRF cookie. This should either match the URL path of your
  231. Django installation or be a parent of that path.
  232. This is useful if you have multiple Django instances running under the same
  233. hostname. They can use different cookie paths, and each instance will only see
  234. its own CSRF cookie.
  235. .. setting:: CSRF_COOKIE_SECURE
  236. CSRF_COOKIE_SECURE
  237. ------------------
  238. .. versionadded:: 1.4
  239. Default: ``False``
  240. Whether to use a secure cookie for the CSRF cookie. If this is set to ``True``,
  241. the cookie will be marked as "secure," which means browsers may ensure that the
  242. cookie is only sent under an HTTPS connection.
  243. .. setting:: CSRF_FAILURE_VIEW
  244. CSRF_FAILURE_VIEW
  245. -----------------
  246. .. versionadded:: 1.2
  247. Default: ``'django.views.csrf.csrf_failure'``
  248. A dotted path to the view function to be used when an incoming request
  249. is rejected by the CSRF protection. The function should have this signature::
  250. def csrf_failure(request, reason="")
  251. where ``reason`` is a short message (intended for developers or logging, not for
  252. end users) indicating the reason the request was rejected. See
  253. :doc:`/ref/contrib/csrf`.
  254. .. setting:: DATABASES
  255. DATABASES
  256. ---------
  257. .. versionadded:: 1.2
  258. Default: ``{}`` (Empty dictionary)
  259. A dictionary containing the settings for all databases to be used with
  260. Django. It is a nested dictionary whose contents maps database aliases
  261. to a dictionary containing the options for an individual database.
  262. The :setting:`DATABASES` setting must configure a ``default`` database;
  263. any number of additional databases may also be specified.
  264. The simplest possible settings file is for a single-database setup using
  265. SQLite. This can be configured using the following::
  266. DATABASES = {
  267. 'default': {
  268. 'ENGINE': 'django.db.backends.sqlite3',
  269. 'NAME': 'mydatabase'
  270. }
  271. }
  272. For other database backends, or more complex SQLite configurations, other options
  273. will be required. The following inner options are available.
  274. .. setting:: DATABASE-ENGINE
  275. ENGINE
  276. ~~~~~~
  277. Default: ``''`` (Empty string)
  278. The database backend to use. The built-in database backends are:
  279. * ``'django.db.backends.postgresql_psycopg2'``
  280. * ``'django.db.backends.mysql'``
  281. * ``'django.db.backends.sqlite3'``
  282. * ``'django.db.backends.oracle'``
  283. You can use a database backend that doesn't ship with Django by setting
  284. ``ENGINE`` to a fully-qualified path (i.e.
  285. ``mypackage.backends.whatever``). Writing a whole new database backend from
  286. scratch is left as an exercise to the reader; see the other backends for
  287. examples.
  288. .. note::
  289. Prior to Django 1.2, you could use a short version of the backend name
  290. to reference the built-in database backends (e.g., you could use
  291. ``'sqlite3'`` to refer to the SQLite backend). This format has been
  292. deprecated, and will be removed in Django 1.4.
  293. .. setting:: HOST
  294. HOST
  295. ~~~~
  296. Default: ``''`` (Empty string)
  297. Which host to use when connecting to the database. An empty string means
  298. localhost. Not used with SQLite.
  299. If this value starts with a forward slash (``'/'``) and you're using MySQL,
  300. MySQL will connect via a Unix socket to the specified socket. For example::
  301. "HOST": '/var/run/mysql'
  302. If you're using MySQL and this value *doesn't* start with a forward slash, then
  303. this value is assumed to be the host.
  304. If you're using PostgreSQL, an empty string means to use a Unix domain socket
  305. for the connection, rather than a network connection to localhost. If you
  306. explicitly need to use a TCP/IP connection on the local machine with
  307. PostgreSQL, specify ``localhost`` here.
  308. .. setting:: NAME
  309. NAME
  310. ~~~~
  311. Default: ``''`` (Empty string)
  312. The name of the database to use. For SQLite, it's the full path to the database
  313. file. When specifying the path, always use forward slashes, even on Windows
  314. (e.g. ``C:/homes/user/mysite/sqlite3.db``).
  315. .. setting:: OPTIONS
  316. OPTIONS
  317. ~~~~~~~
  318. Default: ``{}`` (Empty dictionary)
  319. Extra parameters to use when connecting to the database. Available parameters
  320. vary depending on your database backend.
  321. Some information on available parameters can be found in the
  322. :doc:`Database Backends </ref/databases>` documentation. For more information,
  323. consult your backend module's own documentation.
  324. .. setting:: PASSWORD
  325. PASSWORD
  326. ~~~~~~~~
  327. Default: ``''`` (Empty string)
  328. The password to use when connecting to the database. Not used with SQLite.
  329. .. setting:: PORT
  330. PORT
  331. ~~~~
  332. Default: ``''`` (Empty string)
  333. The port to use when connecting to the database. An empty string means the
  334. default port. Not used with SQLite.
  335. .. setting:: USER
  336. USER
  337. ~~~~
  338. Default: ``''`` (Empty string)
  339. The username to use when connecting to the database. Not used with SQLite.
  340. .. setting:: TEST_CHARSET
  341. TEST_CHARSET
  342. ~~~~~~~~~~~~
  343. Default: ``None``
  344. The character set encoding used to create the test database. The value of this
  345. string is passed directly through to the database, so its format is
  346. backend-specific.
  347. Supported for the PostgreSQL_ (``postgresql_psycopg2``) and MySQL_ (``mysql``)
  348. backends.
  349. .. _PostgreSQL: http://www.postgresql.org/docs/8.2/static/multibyte.html
  350. .. _MySQL: http://dev.mysql.com/doc/refman/5.0/en/charset-database.html
  351. .. setting:: TEST_COLLATION
  352. TEST_COLLATION
  353. ~~~~~~~~~~~~~~
  354. Default: ``None``
  355. The collation order to use when creating the test database. This value is
  356. passed directly to the backend, so its format is backend-specific.
  357. Only supported for the ``mysql`` backend (see the `MySQL manual`_ for details).
  358. .. _MySQL manual: MySQL_
  359. .. setting:: TEST_DEPENDENCIES
  360. TEST_DEPENDENCIES
  361. ~~~~~~~~~~~~~~~~~
  362. .. versionadded:: 1.3
  363. Default: ``['default']``, for all databases other than ``default``,
  364. which has no dependencies.
  365. The creation-order dependencies of the database. See the documentation
  366. on :ref:`controlling the creation order of test databases
  367. <topics-testing-creation-dependencies>` for details.
  368. .. setting:: TEST_MIRROR
  369. TEST_MIRROR
  370. ~~~~~~~~~~~
  371. Default: ``None``
  372. The alias of the database that this database should mirror during
  373. testing.
  374. This setting exists to allow for testing of master/slave
  375. configurations of multiple databases. See the documentation on
  376. :ref:`testing master/slave configurations
  377. <topics-testing-masterslave>` for details.
  378. .. setting:: TEST_NAME
  379. TEST_NAME
  380. ~~~~~~~~~
  381. Default: ``None``
  382. The name of database to use when running the test suite.
  383. If the default value (``None``) is used with the SQLite database engine, the
  384. tests will use a memory resident database. For all other database engines the
  385. test database will use the name ``'test_' + DATABASE_NAME``.
  386. See :doc:`/topics/testing`.
  387. .. setting:: TEST_USER
  388. TEST_USER
  389. ~~~~~~~~~
  390. Default: ``None``
  391. This is an Oracle-specific setting.
  392. The username to use when connecting to the Oracle database that will be used
  393. when running tests.
  394. .. setting:: DATABASE_ROUTERS
  395. DATABASE_ROUTERS
  396. ----------------
  397. .. versionadded:: 1.2
  398. Default: ``[]`` (Empty list)
  399. The list of routers that will be used to determine which database
  400. to use when performing a database queries.
  401. See the documentation on :ref:`automatic database routing in multi
  402. database configurations <topics-db-multi-db-routing>`.
  403. .. setting:: DATE_FORMAT
  404. DATE_FORMAT
  405. -----------
  406. Default: ``'N j, Y'`` (e.g. ``Feb. 4, 2003``)
  407. The default formatting to use for displaying date fields in any part of the
  408. system. Note that if :setting:`USE_L10N` is set to ``True``, then the
  409. locale-dictated format has higher precedence and will be applied instead. See
  410. :tfilter:`allowed date format strings <date>`.
  411. .. versionchanged:: 1.2
  412. This setting can now be overriden by setting :setting:`USE_L10N` to ``True``.
  413. See also :setting:`DATETIME_FORMAT`, :setting:`TIME_FORMAT` and :setting:`SHORT_DATE_FORMAT`.
  414. .. setting:: DATE_INPUT_FORMATS
  415. DATE_INPUT_FORMATS
  416. ------------------
  417. .. versionadded:: 1.2
  418. Default::
  419. ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y',
  420. '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y',
  421. '%B %d, %Y', '%d %B %Y', '%d %B, %Y')
  422. A tuple of formats that will be accepted when inputting data on a date
  423. field. Formats will be tried in order, using the first valid.
  424. Note that these format strings are specified in Python's datetime_ module
  425. syntax, that is different from the one used by Django for formatting dates
  426. to be displayed.
  427. See also :setting:`DATETIME_INPUT_FORMATS` and :setting:`TIME_INPUT_FORMATS`.
  428. .. _datetime: http://docs.python.org/library/datetime.html#strftime-strptime-behavior
  429. .. setting:: DATETIME_FORMAT
  430. DATETIME_FORMAT
  431. ---------------
  432. Default: ``'N j, Y, P'`` (e.g. ``Feb. 4, 2003, 4 p.m.``)
  433. The default formatting to use for displaying datetime fields in any part of the
  434. system. Note that if :setting:`USE_L10N` is set to ``True``, then the
  435. locale-dictated format has higher precedence and will be applied instead. See
  436. :tfilter:`allowed date format strings <date>`.
  437. .. versionchanged:: 1.2
  438. This setting can now be overriden by setting :setting:`USE_L10N` to ``True``.
  439. See also :setting:`DATE_FORMAT`, :setting:`TIME_FORMAT` and :setting:`SHORT_DATETIME_FORMAT`.
  440. .. setting:: DATETIME_INPUT_FORMATS
  441. DATETIME_INPUT_FORMATS
  442. ----------------------
  443. .. versionadded:: 1.2
  444. Default::
  445. ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d',
  446. '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y',
  447. '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y')
  448. A tuple of formats that will be accepted when inputting data on a datetime
  449. field. Formats will be tried in order, using the first valid.
  450. Note that these format strings are specified in Python's datetime_ module
  451. syntax, that is different from the one used by Django for formatting dates
  452. to be displayed.
  453. See also :setting:`DATE_INPUT_FORMATS` and :setting:`TIME_INPUT_FORMATS`.
  454. .. _datetime: http://docs.python.org/library/datetime.html#strftime-strptime-behavior
  455. .. setting:: DEBUG
  456. DEBUG
  457. -----
  458. Default: ``False``
  459. A boolean that turns on/off debug mode.
  460. If you define custom settings, `django/views/debug.py`_ has a ``HIDDEN_SETTINGS``
  461. regular expression which will hide from the DEBUG view anything that contains
  462. ``'SECRET'``, ``'PASSWORD'``, ``'PROFANITIES'``, or ``'SIGNATURE'``. This allows
  463. untrusted users to be able to give backtraces without seeing sensitive (or
  464. offensive) settings.
  465. Still, note that there are always going to be sections of your debug output that
  466. are inappropriate for public consumption. File paths, configuration options, and
  467. the like all give attackers extra information about your server.
  468. It is also important to remember that when running with :setting:`DEBUG`
  469. turned on, Django will remember every SQL query it executes. This is useful
  470. when you are debugging, but on a production server, it will rapidly consume
  471. memory.
  472. Never deploy a site into production with :setting:`DEBUG` turned on.
  473. .. _django/views/debug.py: http://code.djangoproject.com/browser/django/trunk/django/views/debug.py
  474. DEBUG_PROPAGATE_EXCEPTIONS
  475. --------------------------
  476. Default: ``False``
  477. If set to True, Django's normal exception handling of view functions
  478. will be suppressed, and exceptions will propagate upwards. This can
  479. be useful for some test setups, and should never be used on a live
  480. site.
  481. .. setting:: DECIMAL_SEPARATOR
  482. DECIMAL_SEPARATOR
  483. -----------------
  484. .. versionadded:: 1.2
  485. Default: ``'.'`` (Dot)
  486. Default decimal separator used when formatting decimal numbers.
  487. .. setting:: DEFAULT_CHARSET
  488. DEFAULT_CHARSET
  489. ---------------
  490. Default: ``'utf-8'``
  491. Default charset to use for all ``HttpResponse`` objects, if a MIME type isn't
  492. manually specified. Used with :setting:`DEFAULT_CONTENT_TYPE` to construct the
  493. ``Content-Type`` header.
  494. .. setting:: DEFAULT_CONTENT_TYPE
  495. DEFAULT_CONTENT_TYPE
  496. --------------------
  497. Default: ``'text/html'``
  498. Default content type to use for all ``HttpResponse`` objects, if a MIME type
  499. isn't manually specified. Used with :setting:`DEFAULT_CHARSET` to construct
  500. the ``Content-Type`` header.
  501. .. setting:: DEFAULT_FILE_STORAGE
  502. DEFAULT_FILE_STORAGE
  503. --------------------
  504. Default: :class:`django.core.files.storage.FileSystemStorage`
  505. Default file storage class to be used for any file-related operations that don't
  506. specify a particular storage system. See :doc:`/topics/files`.
  507. .. setting:: DEFAULT_FROM_EMAIL
  508. DEFAULT_FROM_EMAIL
  509. ------------------
  510. Default: ``'webmaster@localhost'``
  511. Default email address to use for various automated correspondence from the
  512. site manager(s).
  513. .. setting:: DEFAULT_INDEX_TABLESPACE
  514. DEFAULT_INDEX_TABLESPACE
  515. ------------------------
  516. Default: ``''`` (Empty string)
  517. Default tablespace to use for indexes on fields that don't specify
  518. one, if the backend supports it.
  519. .. setting:: DEFAULT_TABLESPACE
  520. DEFAULT_TABLESPACE
  521. ------------------
  522. Default: ``''`` (Empty string)
  523. Default tablespace to use for models that don't specify one, if the
  524. backend supports it.
  525. .. setting:: DISALLOWED_USER_AGENTS
  526. DISALLOWED_USER_AGENTS
  527. ----------------------
  528. Default: ``()`` (Empty tuple)
  529. List of compiled regular expression objects representing User-Agent strings that
  530. are not allowed to visit any page, systemwide. Use this for bad robots/crawlers.
  531. This is only used if ``CommonMiddleware`` is installed (see
  532. :doc:`/topics/http/middleware`).
  533. .. setting:: EMAIL_BACKEND
  534. EMAIL_BACKEND
  535. -------------
  536. .. versionadded:: 1.2
  537. Default: ``'django.core.mail.backends.smtp.EmailBackend'``
  538. The backend to use for sending emails. For the list of available backends see
  539. :doc:`/topics/email`.
  540. .. setting:: EMAIL_FILE_PATH
  541. EMAIL_FILE_PATH
  542. ---------------
  543. .. versionadded:: 1.2
  544. Default: Not defined
  545. The directory used by the ``file`` email backend to store output files.
  546. .. setting:: EMAIL_HOST
  547. EMAIL_HOST
  548. ----------
  549. Default: ``'localhost'``
  550. The host to use for sending email.
  551. See also :setting:`EMAIL_PORT`.
  552. .. setting:: EMAIL_HOST_PASSWORD
  553. EMAIL_HOST_PASSWORD
  554. -------------------
  555. Default: ``''`` (Empty string)
  556. Password to use for the SMTP server defined in :setting:`EMAIL_HOST`. This
  557. setting is used in conjunction with :setting:`EMAIL_HOST_USER` when
  558. authenticating to the SMTP server. If either of these settings is empty,
  559. Django won't attempt authentication.
  560. See also :setting:`EMAIL_HOST_USER`.
  561. .. setting:: EMAIL_HOST_USER
  562. EMAIL_HOST_USER
  563. ---------------
  564. Default: ``''`` (Empty string)
  565. Username to use for the SMTP server defined in :setting:`EMAIL_HOST`.
  566. If empty, Django won't attempt authentication.
  567. See also :setting:`EMAIL_HOST_PASSWORD`.
  568. .. setting:: EMAIL_PORT
  569. EMAIL_PORT
  570. ----------
  571. Default: ``25``
  572. Port to use for the SMTP server defined in :setting:`EMAIL_HOST`.
  573. .. setting:: EMAIL_SUBJECT_PREFIX
  574. EMAIL_SUBJECT_PREFIX
  575. --------------------
  576. Default: ``'[Django] '``
  577. Subject-line prefix for email messages sent with ``django.core.mail.mail_admins``
  578. or ``django.core.mail.mail_managers``. You'll probably want to include the
  579. trailing space.
  580. .. setting:: EMAIL_USE_TLS
  581. EMAIL_USE_TLS
  582. -------------
  583. Default: ``False``
  584. Whether to use a TLS (secure) connection when talking to the SMTP server.
  585. .. setting:: FILE_CHARSET
  586. FILE_CHARSET
  587. ------------
  588. Default: ``'utf-8'``
  589. The character encoding used to decode any files read from disk. This includes
  590. template files and initial SQL data files.
  591. .. setting:: FILE_UPLOAD_HANDLERS
  592. FILE_UPLOAD_HANDLERS
  593. --------------------
  594. Default::
  595. ("django.core.files.uploadhandler.MemoryFileUploadHandler",
  596. "django.core.files.uploadhandler.TemporaryFileUploadHandler",)
  597. A tuple of handlers to use for uploading. See :doc:`/topics/files` for details.
  598. .. setting:: FILE_UPLOAD_MAX_MEMORY_SIZE
  599. FILE_UPLOAD_MAX_MEMORY_SIZE
  600. ---------------------------
  601. Default: ``2621440`` (i.e. 2.5 MB).
  602. The maximum size (in bytes) that an upload will be before it gets streamed to
  603. the file system. See :doc:`/topics/files` for details.
  604. .. setting:: FILE_UPLOAD_PERMISSIONS
  605. FILE_UPLOAD_PERMISSIONS
  606. -----------------------
  607. Default: ``None``
  608. The numeric mode (i.e. ``0644``) to set newly uploaded files to. For
  609. more information about what these modes mean, see the `documentation for
  610. os.chmod`_
  611. If this isn't given or is ``None``, you'll get operating-system
  612. dependent behavior. On most platforms, temporary files will have a mode
  613. of ``0600``, and files saved from memory will be saved using the
  614. system's standard umask.
  615. .. warning::
  616. **Always prefix the mode with a 0.**
  617. If you're not familiar with file modes, please note that the leading
  618. ``0`` is very important: it indicates an octal number, which is the
  619. way that modes must be specified. If you try to use ``644``, you'll
  620. get totally incorrect behavior.
  621. .. _documentation for os.chmod: http://docs.python.org/library/os.html#os.chmod
  622. .. setting:: FILE_UPLOAD_TEMP_DIR
  623. FILE_UPLOAD_TEMP_DIR
  624. --------------------
  625. Default: ``None``
  626. The directory to store data temporarily while uploading files. If ``None``,
  627. Django will use the standard temporary directory for the operating system. For
  628. example, this will default to '/tmp' on \*nix-style operating systems.
  629. See :doc:`/topics/files` for details.
  630. .. setting:: FIRST_DAY_OF_WEEK
  631. FIRST_DAY_OF_WEEK
  632. -----------------
  633. .. versionadded:: 1.2
  634. Default: ``0`` (Sunday)
  635. Number representing the first day of the week. This is especially useful
  636. when displaying a calendar. This value is only used when not using
  637. format internationalization, or when a format cannot be found for the
  638. current locale.
  639. The value must be an integer from 0 to 6, where 0 means Sunday, 1 means
  640. Monday and so on.
  641. .. setting:: FIXTURE_DIRS
  642. FIXTURE_DIRS
  643. -------------
  644. Default: ``()`` (Empty tuple)
  645. List of locations of the fixture data files, in search order. Note that
  646. these paths should use Unix-style forward slashes, even on Windows. See
  647. :doc:`/topics/testing`.
  648. FORCE_SCRIPT_NAME
  649. ------------------
  650. Default: ``None``
  651. If not ``None``, this will be used as the value of the ``SCRIPT_NAME``
  652. environment variable in any HTTP request. This setting can be used to override
  653. the server-provided value of ``SCRIPT_NAME``, which may be a rewritten version
  654. of the preferred value or not supplied at all.
  655. .. setting:: FORMAT_MODULE_PATH
  656. FORMAT_MODULE_PATH
  657. ------------------
  658. .. versionadded:: 1.2
  659. Default: ``None``
  660. A full Python path to a Python package that contains format definitions for
  661. project locales. If not ``None``, Django will check for a ``formats.py``
  662. file, under the directory named as the current locale, and will use the
  663. formats defined on this file.
  664. For example, if :setting:`FORMAT_MODULE_PATH` is set to ``mysite.formats``,
  665. and current language is ``en`` (English), Django will expect a directory tree
  666. like::
  667. mysite/
  668. formats/
  669. __init__.py
  670. en/
  671. __init__.py
  672. formats.py
  673. Available formats are :setting:`DATE_FORMAT`, :setting:`TIME_FORMAT`,
  674. :setting:`DATETIME_FORMAT`, :setting:`YEAR_MONTH_FORMAT`,
  675. :setting:`MONTH_DAY_FORMAT`, :setting:`SHORT_DATE_FORMAT`,
  676. :setting:`SHORT_DATETIME_FORMAT`, :setting:`FIRST_DAY_OF_WEEK`,
  677. :setting:`DECIMAL_SEPARATOR`, :setting:`THOUSAND_SEPARATOR` and
  678. :setting:`NUMBER_GROUPING`.
  679. .. setting:: IGNORABLE_404_URLS
  680. IGNORABLE_404_URLS
  681. ------------------
  682. .. versionadded:: 1.4
  683. Default: ``()``
  684. List of compiled regular expression objects describing URLs that should be
  685. ignored when reporting HTTP 404 errors via email (see
  686. :doc:`/howto/error-reporting`). Use this if your site does not provide a
  687. commonly requested file such as ``favicon.ico`` or ``robots.txt``, or if it
  688. gets hammered by script kiddies.
  689. This is only used if :setting:`SEND_BROKEN_LINK_EMAILS` is set to ``True`` and
  690. ``CommonMiddleware`` is installed (see :doc:`/topics/http/middleware`).
  691. .. setting:: INSTALLED_APPS
  692. INSTALLED_APPS
  693. --------------
  694. Default: ``()`` (Empty tuple)
  695. A tuple of strings designating all applications that are enabled in this Django
  696. installation. Each string should be a full Python path to a Python package that
  697. contains a Django application, as created by :djadmin:`django-admin.py startapp
  698. <startapp>`.
  699. .. admonition:: App names must be unique
  700. The application names (that is, the final dotted part of the
  701. path to the module containing ``models.py``) defined in
  702. :setting:`INSTALLED_APPS` *must* be unique. For example, you can't
  703. include both ``django.contrib.auth`` and ``myproject.auth`` in
  704. INSTALLED_APPS.
  705. .. setting:: INTERNAL_IPS
  706. INTERNAL_IPS
  707. ------------
  708. Default: ``()`` (Empty tuple)
  709. A tuple of IP addresses, as strings, that:
  710. * See debug comments, when :setting:`DEBUG` is ``True``
  711. * Receive X headers if the ``XViewMiddleware`` is installed (see
  712. :doc:`/topics/http/middleware`)
  713. .. setting:: LANGUAGE_CODE
  714. LANGUAGE_CODE
  715. -------------
  716. Default: ``'en-us'``
  717. A string representing the language code for this installation. This should be in
  718. standard :term:`language format<language code>`. For example, U.S. English is
  719. ``"en-us"``. See :doc:`/topics/i18n/index`.
  720. .. setting:: LANGUAGE_COOKIE_NAME
  721. LANGUAGE_COOKIE_NAME
  722. --------------------
  723. Default: ``'django_language'``
  724. The name of the cookie to use for the language cookie. This can be whatever
  725. you want (but should be different from :setting:`SESSION_COOKIE_NAME`). See
  726. :doc:`/topics/i18n/index`.
  727. .. setting:: LANGUAGES
  728. LANGUAGES
  729. ---------
  730. Default: A tuple of all available languages. This list is continually growing
  731. and including a copy here would inevitably become rapidly out of date. You can
  732. see the current list of translated languages by looking in
  733. ``django/conf/global_settings.py`` (or view the `online source`_).
  734. .. _online source: http://code.djangoproject.com/browser/django/trunk/django/conf/global_settings.py
  735. The list is a tuple of two-tuples in the format ``(language code, language
  736. name)``, the ``language code`` part should be a
  737. :term:`language name<language code>` -- for example, ``('ja', 'Japanese')``.
  738. This specifies which languages are available for language selection. See
  739. :doc:`/topics/i18n/index`.
  740. Generally, the default value should suffice. Only set this setting if you want
  741. to restrict language selection to a subset of the Django-provided languages.
  742. If you define a custom :setting:`LANGUAGES` setting, it's OK to mark the
  743. languages as translation strings (as in the default value referred to above)
  744. -- but use a "dummy" ``gettext()`` function, not the one in
  745. ``django.utils.translation``. You should *never* import
  746. ``django.utils.translation`` from within your settings file, because that
  747. module in itself depends on the settings, and that would cause a circular
  748. import.
  749. The solution is to use a "dummy" ``gettext()`` function. Here's a sample
  750. settings file::
  751. gettext = lambda s: s
  752. LANGUAGES = (
  753. ('de', gettext('German')),
  754. ('en', gettext('English')),
  755. )
  756. With this arrangement, ``django-admin.py makemessages`` will still find and
  757. mark these strings for translation, but the translation won't happen at
  758. runtime -- so you'll have to remember to wrap the languages in the *real*
  759. ``gettext()`` in any code that uses :setting:`LANGUAGES` at runtime.
  760. .. setting:: LOCALE_PATHS
  761. LOCALE_PATHS
  762. ------------
  763. Default: ``()`` (Empty tuple)
  764. A tuple of directories where Django looks for translation files.
  765. See :ref:`using-translations-in-your-own-projects`.
  766. Example::
  767. LOCALE_PATHS = (
  768. '/home/www/project/common_files/locale',
  769. '/var/local/translations/locale'
  770. )
  771. Note that in the paths you add to the value of this setting, if you have the
  772. typical ``/path/to/locale/xx/LC_MESSAGES`` hierarchy, you should use the path to
  773. the ``locale`` directory (i.e. ``'/path/to/locale'``).
  774. .. setting:: LOGGING
  775. LOGGING
  776. -------
  777. .. versionadded:: 1.3
  778. Default: A logging configuration dictionary.
  779. A data structure containing configuration information. The contents of
  780. this data structure will be passed as the argument to the
  781. configuration method described in :setting:`LOGGING_CONFIG`.
  782. The default logging configuration passes HTTP 500 server errors to an
  783. email log handler; all other log messages are given to a NullHandler.
  784. .. setting:: LOGGING_CONFIG
  785. LOGGING_CONFIG
  786. --------------
  787. .. versionadded:: 1.3
  788. Default: ``'django.utils.log.dictConfig'``
  789. A path to a callable that will be used to configure logging in the
  790. Django project. Points at a instance of Python's `dictConfig`_
  791. configuration method by default.
  792. If you set :setting:`LOGGING_CONFIG` to ``None``, the logging
  793. configuration process will be skipped.
  794. .. _dictConfig: http://docs.python.org/library/logging.config.html#configuration-dictionary-schema
  795. .. setting:: LOGIN_REDIRECT_URL
  796. LOGIN_REDIRECT_URL
  797. ------------------
  798. Default: ``'/accounts/profile/'``
  799. The URL where requests are redirected after login when the
  800. ``contrib.auth.login`` view gets no ``next`` parameter.
  801. This is used by the :func:`~django.contrib.auth.decorators.login_required`
  802. decorator, for example.
  803. .. setting:: LOGIN_URL
  804. LOGIN_URL
  805. ---------
  806. Default: ``'/accounts/login/'``
  807. The URL where requests are redirected for login, especially when using the
  808. :func:`~django.contrib.auth.decorators.login_required` decorator.
  809. .. setting:: LOGOUT_URL
  810. LOGOUT_URL
  811. ----------
  812. Default: ``'/accounts/logout/'``
  813. LOGIN_URL counterpart.
  814. .. setting:: MANAGERS
  815. MANAGERS
  816. --------
  817. Default: ``()`` (Empty tuple)
  818. A tuple in the same format as :setting:`ADMINS` that specifies who should get
  819. broken-link notifications when ``SEND_BROKEN_LINK_EMAILS=True``.
  820. .. setting:: MEDIA_ROOT
  821. MEDIA_ROOT
  822. ----------
  823. Default: ``''`` (Empty string)
  824. Absolute path to the directory that holds media for this installation, used
  825. for :doc:`managing stored files </topics/files>`.
  826. Example: ``"/home/media/media.lawrence.com/"``
  827. See also :setting:`MEDIA_URL`.
  828. .. setting:: MEDIA_URL
  829. MEDIA_URL
  830. ---------
  831. Default: ``''`` (Empty string)
  832. URL that handles the media served from :setting:`MEDIA_ROOT`, used
  833. for :doc:`managing stored files </topics/files>`.
  834. Example: ``"http://media.lawrence.com/"``
  835. .. versionchanged:: 1.3
  836. It must end in a slash if set to a non-empty value.
  837. MESSAGE_LEVEL
  838. -------------
  839. .. versionadded:: 1.2
  840. Default: `messages.INFO`
  841. Sets the minimum message level that will be recorded by the messages
  842. framework. See the :doc:`messages documentation </ref/contrib/messages>` for
  843. more details.
  844. MESSAGE_STORAGE
  845. ---------------
  846. .. versionadded:: 1.2
  847. Default: ``'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'``
  848. Controls where Django stores message data. See the
  849. :doc:`messages documentation </ref/contrib/messages>` for more details.
  850. MESSAGE_TAGS
  851. ------------
  852. .. versionadded:: 1.2
  853. Default::
  854. {messages.DEBUG: 'debug',
  855. messages.INFO: 'info',
  856. messages.SUCCESS: 'success',
  857. messages.WARNING: 'warning',
  858. messages.ERROR: 'error',}
  859. Sets the mapping of message levels to message tags. See the
  860. :doc:`messages documentation </ref/contrib/messages>` for more details.
  861. .. setting:: MIDDLEWARE_CLASSES
  862. MIDDLEWARE_CLASSES
  863. ------------------
  864. Default::
  865. ('django.middleware.common.CommonMiddleware',
  866. 'django.contrib.sessions.middleware.SessionMiddleware',
  867. 'django.middleware.csrf.CsrfViewMiddleware',
  868. 'django.contrib.auth.middleware.AuthenticationMiddleware',
  869. 'django.contrib.messages.middleware.MessageMiddleware',)
  870. A tuple of middleware classes to use. See :doc:`/topics/http/middleware`.
  871. .. versionchanged:: 1.2
  872. ``'django.contrib.messages.middleware.MessageMiddleware'`` was added to the
  873. default. For more information, see the :doc:`messages documentation
  874. </ref/contrib/messages>`.
  875. .. setting:: MONTH_DAY_FORMAT
  876. MONTH_DAY_FORMAT
  877. ----------------
  878. Default: ``'F j'``
  879. The default formatting to use for date fields on Django admin change-list
  880. pages -- and, possibly, by other parts of the system -- in cases when only the
  881. month and day are displayed.
  882. For example, when a Django admin change-list page is being filtered by a date
  883. drilldown, the header for a given day displays the day and month. Different
  884. locales have different formats. For example, U.S. English would say
  885. "January 1," whereas Spanish might say "1 Enero."
  886. See :tfilter:`allowed date format strings <date>`. See also
  887. :setting:`DATE_FORMAT`, :setting:`DATETIME_FORMAT`,
  888. :setting:`TIME_FORMAT` and :setting:`YEAR_MONTH_FORMAT`.
  889. .. setting:: NUMBER_GROUPING
  890. NUMBER_GROUPING
  891. ----------------
  892. .. versionadded:: 1.2
  893. Default: ``0``
  894. Number of digits grouped together on the integer part of a number. Common use
  895. is to display a thousand separator. If this setting is ``0``, then, no grouping
  896. will be applied to the number. If this setting is greater than ``0`` then the
  897. setting :setting:`THOUSAND_SEPARATOR` will be used as the separator between those
  898. groups.
  899. See also :setting:`THOUSAND_SEPARATOR` and :setting:`USE_THOUSAND_SEPARATOR`.
  900. .. setting:: PASSWORD_RESET_TIMEOUT_DAYS
  901. PASSWORD_RESET_TIMEOUT_DAYS
  902. ---------------------------
  903. Default: ``3``
  904. The number of days a password reset link is valid for. Used by the
  905. :mod:`django.contrib.auth` password reset mechanism.
  906. .. setting:: PREPEND_WWW
  907. PREPEND_WWW
  908. -----------
  909. Default: ``False``
  910. Whether to prepend the "www." subdomain to URLs that don't have it. This is only
  911. used if :class:`~django.middleware.common.CommonMiddleware` is installed
  912. (see :doc:`/topics/http/middleware`). See also :setting:`APPEND_SLASH`.
  913. .. setting:: PROFANITIES_LIST
  914. PROFANITIES_LIST
  915. ----------------
  916. Default: ``()`` (Empty tuple)
  917. A tuple of profanities, as strings, that will trigger a validation error when
  918. the ``hasNoProfanities`` validator is called.
  919. .. setting:: RESTRUCTUREDTEXT_FILTER_SETTINGS
  920. RESTRUCTUREDTEXT_FILTER_SETTINGS
  921. --------------------------------
  922. Default: ``{}``
  923. A dictionary containing settings for the ``restructuredtext`` markup filter from
  924. the :doc:`django.contrib.markup application </ref/contrib/markup>`. They override
  925. the default writer settings. See the Docutils restructuredtext `writer settings
  926. docs`_ for details.
  927. .. _writer settings docs: http://docutils.sourceforge.net/docs/user/config.html#html4css1-writer
  928. .. setting:: ROOT_URLCONF
  929. ROOT_URLCONF
  930. ------------
  931. Default: Not defined
  932. A string representing the full Python import path to your root URLconf. For example:
  933. ``"mydjangoapps.urls"``. Can be overridden on a per-request basis by
  934. setting the attribute ``urlconf`` on the incoming ``HttpRequest``
  935. object. See :ref:`how-django-processes-a-request` for details.
  936. .. setting:: SECRET_KEY
  937. SECRET_KEY
  938. ----------
  939. Default: ``''`` (Empty string)
  940. A secret key for this particular Django installation. Used to provide a seed in
  941. secret-key hashing algorithms. Set this to a random string -- the longer, the
  942. better. ``django-admin.py startproject`` creates one automatically.
  943. .. setting:: SEND_BROKEN_LINK_EMAILS
  944. SEND_BROKEN_LINK_EMAILS
  945. -----------------------
  946. Default: ``False``
  947. Whether to send an email to the :setting:`MANAGERS` each time somebody visits
  948. a Django-powered page that is 404ed with a non-empty referer (i.e., a broken
  949. link). This is only used if ``CommonMiddleware`` is installed (see
  950. :doc:`/topics/http/middleware`). See also :setting:`IGNORABLE_404_URLS` and
  951. :doc:`/howto/error-reporting`.
  952. .. setting:: SERIALIZATION_MODULES
  953. SERIALIZATION_MODULES
  954. ---------------------
  955. Default: Not defined.
  956. A dictionary of modules containing serializer definitions (provided as
  957. strings), keyed by a string identifier for that serialization type. For
  958. example, to define a YAML serializer, use::
  959. SERIALIZATION_MODULES = { 'yaml' : 'path.to.yaml_serializer' }
  960. .. setting:: SERVER_EMAIL
  961. SERVER_EMAIL
  962. ------------
  963. Default: ``'root@localhost'``
  964. The email address that error messages come from, such as those sent to
  965. :setting:`ADMINS` and :setting:`MANAGERS`.
  966. .. setting:: SESSION_COOKIE_AGE
  967. SESSION_COOKIE_AGE
  968. ------------------
  969. Default: ``1209600`` (2 weeks, in seconds)
  970. The age of session cookies, in seconds. See :doc:`/topics/http/sessions`.
  971. .. setting:: SESSION_COOKIE_DOMAIN
  972. SESSION_COOKIE_DOMAIN
  973. ---------------------
  974. Default: ``None``
  975. The domain to use for session cookies. Set this to a string such as
  976. ``".lawrence.com"`` for cross-domain cookies, or use ``None`` for a standard
  977. domain cookie. See the :doc:`/topics/http/sessions`.
  978. .. setting:: SESSION_COOKIE_HTTPONLY
  979. SESSION_COOKIE_HTTPONLY
  980. -----------------------
  981. Default: ``False``
  982. Whether to use HTTPOnly flag on the session cookie. If this is set to
  983. ``True``, client-side JavaScript will not to be able to access the
  984. session cookie.
  985. HTTPOnly_ is a flag included in a Set-Cookie HTTP response header. It
  986. is not part of the RFC2109 standard for cookies, and it isn't honored
  987. consistently by all browsers. However, when it is honored, it can be a
  988. useful way to mitigate the risk of client side script accessing the
  989. protected cookie data.
  990. .. _HTTPOnly: http://www.owasp.org/index.php/HTTPOnly
  991. .. setting:: SESSION_COOKIE_NAME
  992. SESSION_COOKIE_NAME
  993. -------------------
  994. Default: ``'sessionid'``
  995. The name of the cookie to use for sessions. This can be whatever you want (but
  996. should be different from :setting:`LANGUAGE_COOKIE_NAME`).
  997. See the :doc:`/topics/http/sessions`.
  998. .. setting:: SESSION_COOKIE_PATH
  999. SESSION_COOKIE_PATH
  1000. -------------------
  1001. Default: ``'/'``
  1002. The path set on the session cookie. This should either match the URL path of your
  1003. Django installation or be parent of that path.
  1004. This is useful if you have multiple Django instances running under the same
  1005. hostname. They can use different cookie paths, and each instance will only see
  1006. its own session cookie.
  1007. .. setting:: SESSION_COOKIE_SECURE
  1008. SESSION_COOKIE_SECURE
  1009. ---------------------
  1010. Default: ``False``
  1011. Whether to use a secure cookie for the session cookie. If this is set to
  1012. ``True``, the cookie will be marked as "secure," which means browsers may
  1013. ensure that the cookie is only sent under an HTTPS connection.
  1014. See the :doc:`/topics/http/sessions`.
  1015. .. setting:: SESSION_ENGINE
  1016. SESSION_ENGINE
  1017. --------------
  1018. Default: ``django.contrib.sessions.backends.db``
  1019. Controls where Django stores session data. Valid values are:
  1020. * ``'django.contrib.sessions.backends.db'``
  1021. * ``'django.contrib.sessions.backends.file'``
  1022. * ``'django.contrib.sessions.backends.cache'``
  1023. * ``'django.contrib.sessions.backends.cached_db'``
  1024. See :doc:`/topics/http/sessions`.
  1025. .. setting:: SESSION_EXPIRE_AT_BROWSER_CLOSE
  1026. SESSION_EXPIRE_AT_BROWSER_CLOSE
  1027. -------------------------------
  1028. Default: ``False``
  1029. Whether to expire the session when the user closes his or her browser.
  1030. See the :doc:`/topics/http/sessions`.
  1031. .. setting:: SESSION_FILE_PATH
  1032. SESSION_FILE_PATH
  1033. -----------------
  1034. Default: ``None``
  1035. If you're using file-based session storage, this sets the directory in
  1036. which Django will store session data. See :doc:`/topics/http/sessions`. When
  1037. the default value (``None``) is used, Django will use the standard temporary
  1038. directory for the system.
  1039. .. setting:: SESSION_SAVE_EVERY_REQUEST
  1040. SESSION_SAVE_EVERY_REQUEST
  1041. --------------------------
  1042. Default: ``False``
  1043. Whether to save the session data on every request. See
  1044. :doc:`/topics/http/sessions`.
  1045. .. setting:: SHORT_DATE_FORMAT
  1046. SHORT_DATE_FORMAT
  1047. -----------------
  1048. .. versionadded:: 1.2
  1049. Default: ``m/d/Y`` (e.g. ``12/31/2003``)
  1050. An available formatting that can be used for displaying date fields on
  1051. templates. Note that if :setting:`USE_L10N` is set to ``True``, then the
  1052. corresponding locale-dictated format has higher precedence and will be applied.
  1053. See :tfilter:`allowed date format strings <date>`.
  1054. See also :setting:`DATE_FORMAT` and :setting:`SHORT_DATETIME_FORMAT`.
  1055. .. setting:: SHORT_DATETIME_FORMAT
  1056. SHORT_DATETIME_FORMAT
  1057. ---------------------
  1058. .. versionadded:: 1.2
  1059. Default: ``m/d/Y P`` (e.g. ``12/31/2003 4 p.m.``)
  1060. An available formatting that can be used for displaying datetime fields on
  1061. templates. Note that if :setting:`USE_L10N` is set to ``True``, then the
  1062. corresponding locale-dictated format has higher precedence and will be applied.
  1063. See :tfilter:`allowed date format strings <date>`.
  1064. See also :setting:`DATE_FORMAT` and :setting:`SHORT_DATETIME_FORMAT`.
  1065. .. setting:: SIGNING_BACKEND
  1066. SIGNING_BACKEND
  1067. ---------------
  1068. .. versionadded:: 1.4
  1069. Default: 'django.core.signing.TimestampSigner'
  1070. The backend used for signing cookies and other data.
  1071. See also the :doc:`/topics/signing` documentation.
  1072. .. setting:: SITE_ID
  1073. SITE_ID
  1074. -------
  1075. Default: Not defined
  1076. The ID, as an integer, of the current site in the ``django_site`` database
  1077. table. This is used so that application data can hook into specific site(s)
  1078. and a single database can manage content for multiple sites.
  1079. See :doc:`/ref/contrib/sites`.
  1080. .. _site framework docs: ../sites/
  1081. .. setting:: STATIC_ROOT
  1082. STATIC_ROOT
  1083. -----------
  1084. Default: ``''`` (Empty string)
  1085. The absolute path to the directory where :djadmin:`collectstatic` will collect
  1086. static files for deployment.
  1087. Example: ``"/home/example.com/static/"``
  1088. If the :doc:`staticfiles</ref/contrib/staticfiles>` contrib app is enabled
  1089. (default) the :djadmin:`collectstatic` management command will collect static
  1090. files into this directory. See the howto on :doc:`managing static
  1091. files</howto/static-files>` for more details about usage.
  1092. .. warning:: This should be an (initially empty) destination directory for
  1093. collecting your static files from their permanent locations into one
  1094. directory for ease of deployment; it is **not** a place to store your
  1095. static files permanently. You should do that in directories that will be
  1096. found by :doc:`staticfiles</ref/contrib/staticfiles>`'s
  1097. :setting:`finders<STATICFILES_FINDERS>`, which by default, are
  1098. ``'static/'`` app sub-directories and any directories you include in
  1099. :setting:`STATICFILES_DIRS`).
  1100. See :doc:`staticfiles reference</ref/contrib/staticfiles>` and
  1101. :setting:`STATIC_URL`.
  1102. .. setting:: STATIC_URL
  1103. STATIC_URL
  1104. ----------
  1105. Default: ``None``
  1106. URL to use when referring to static files located in :setting:`STATIC_ROOT`.
  1107. Example: ``"/site_media/static/"`` or ``"http://static.example.com/"``
  1108. If not ``None``, this will be used as the base path for
  1109. :ref:`media definitions<form-media-paths>` and the
  1110. :doc:`staticfiles app</ref/contrib/staticfiles>`.
  1111. It must end in a slash if set to a non-empty value.
  1112. See :setting:`STATIC_ROOT`.
  1113. .. setting:: TEMPLATE_CONTEXT_PROCESSORS
  1114. TEMPLATE_CONTEXT_PROCESSORS
  1115. ---------------------------
  1116. Default::
  1117. ("django.contrib.auth.context_processors.auth",
  1118. "django.core.context_processors.debug",
  1119. "django.core.context_processors.i18n",
  1120. "django.core.context_processors.media",
  1121. "django.core.context_processors.static",
  1122. "django.contrib.messages.context_processors.messages")
  1123. A tuple of callables that are used to populate the context in ``RequestContext``.
  1124. These callables take a request object as their argument and return a dictionary
  1125. of items to be merged into the context.
  1126. .. versionchanged:: 1.2
  1127. ``django.contrib.messages.context_processors.messages`` was added to the
  1128. default. For more information, see the :doc:`messages documentation
  1129. </ref/contrib/messages>`.
  1130. .. versionchanged:: 1.2
  1131. The auth context processor was moved in this release from its old location
  1132. ``django.core.context_processors.auth`` to
  1133. ``django.contrib.auth.context_processors.auth``.
  1134. .. versionadded:: 1.3
  1135. The ``django.core.context_processors.static`` context processor
  1136. was added in this release.
  1137. .. setting:: TEMPLATE_DEBUG
  1138. TEMPLATE_DEBUG
  1139. --------------
  1140. Default: ``False``
  1141. A boolean that turns on/off template debug mode. If this is ``True``, the fancy
  1142. error page will display a detailed report for any ``TemplateSyntaxError``. This
  1143. report contains the relevant snippet of the template, with the appropriate line
  1144. highlighted.
  1145. Note that Django only displays fancy error pages if :setting:`DEBUG` is ``True``, so
  1146. you'll want to set that to take advantage of this setting.
  1147. See also :setting:`DEBUG`.
  1148. .. setting:: TEMPLATE_DIRS
  1149. TEMPLATE_DIRS
  1150. -------------
  1151. Default: ``()`` (Empty tuple)
  1152. List of locations of the template source files, in search order. Note that
  1153. these paths should use Unix-style forward slashes, even on Windows.
  1154. See :doc:`/topics/templates`.
  1155. .. setting:: TEMPLATE_LOADERS
  1156. TEMPLATE_LOADERS
  1157. ----------------
  1158. Default::
  1159. ('django.template.loaders.filesystem.Loader',
  1160. 'django.template.loaders.app_directories.Loader')
  1161. A tuple of template loader classes, specified as strings. Each ``Loader`` class
  1162. knows how to import templates from a particular source. Optionally, a tuple can be
  1163. used instead of a string. The first item in the tuple should be the ``Loader``'s
  1164. module, subsequent items are passed to the ``Loader`` during initialization. See
  1165. :doc:`/ref/templates/api`.
  1166. .. versionchanged:: 1.2
  1167. The class-based API for template loaders was introduced in Django 1.2
  1168. although the :setting:`TEMPLATE_LOADERS` setting will accept strings
  1169. that specify function-based loaders until compatibility with them is
  1170. completely removed in Django 1.4.
  1171. .. setting:: TEMPLATE_STRING_IF_INVALID
  1172. TEMPLATE_STRING_IF_INVALID
  1173. --------------------------
  1174. Default: ``''`` (Empty string)
  1175. Output, as a string, that the template system should use for invalid (e.g.
  1176. misspelled) variables. See :ref:`invalid-template-variables`..
  1177. .. setting:: TEST_RUNNER
  1178. TEST_RUNNER
  1179. -----------
  1180. Default: ``'django.test.simple.DjangoTestSuiteRunner'``
  1181. .. versionchanged:: 1.2
  1182. Prior to 1.2, test runners were a function, not a class.
  1183. The name of the class to use for starting the test suite. See
  1184. :doc:`/topics/testing`.
  1185. .. _Testing Django Applications: ../testing/
  1186. .. setting:: THOUSAND_SEPARATOR
  1187. THOUSAND_SEPARATOR
  1188. ------------------
  1189. .. versionadded:: 1.2
  1190. Default: ``,`` (Comma)
  1191. Default thousand separator used when formatting numbers. This setting is
  1192. used only when :setting:`NUMBER_GROUPING` and :setting:`USE_THOUSAND_SEPARATOR`
  1193. are set.
  1194. See also :setting:`NUMBER_GROUPING`, :setting:`DECIMAL_SEPARATOR` and
  1195. :setting:`USE_THOUSAND_SEPARATOR`.
  1196. .. setting:: TIME_FORMAT
  1197. TIME_FORMAT
  1198. -----------
  1199. Default: ``'P'`` (e.g. ``4 p.m.``)
  1200. The default formatting to use for displaying time fields in any part of the
  1201. system. Note that if :setting:`USE_L10N` is set to ``True``, then the
  1202. locale-dictated format has higher precedence and will be applied instead. See
  1203. :tfilter:`allowed date format strings <date>`.
  1204. .. versionchanged:: 1.2
  1205. This setting can now be overriden by setting :setting:`USE_L10N` to ``True``.
  1206. See also :setting:`DATE_FORMAT` and :setting:`DATETIME_FORMAT`.
  1207. .. setting:: TIME_INPUT_FORMATS
  1208. TIME_INPUT_FORMATS
  1209. ------------------
  1210. .. versionadded:: 1.2
  1211. Default: ``('%H:%M:%S', '%H:%M')``
  1212. A tuple of formats that will be accepted when inputting data on a time
  1213. field. Formats will be tried in order, using the first valid.
  1214. Note that these format strings are specified in Python's datetime_ module
  1215. syntax, that is different from the one used by Django for formatting dates
  1216. to be displayed.
  1217. See also :setting:`DATE_INPUT_FORMATS` and :setting:`DATETIME_INPUT_FORMATS`.
  1218. .. _datetime: http://docs.python.org/library/datetime.html#strftime-strptime-behavior
  1219. .. setting:: TIME_ZONE
  1220. TIME_ZONE
  1221. ---------
  1222. Default: ``'America/Chicago'``
  1223. .. versionchanged:: 1.2
  1224. ``None`` was added as an allowed value.
  1225. A string representing the time zone for this installation, or
  1226. ``None``. `See available choices`_. (Note that list of available
  1227. choices lists more than one on the same line; you'll want to use just
  1228. one of the choices for a given time zone. For instance, one line says
  1229. ``'Europe/London GB GB-Eire'``, but you should use the first bit of
  1230. that -- ``'Europe/London'`` -- as your :setting:`TIME_ZONE` setting.)
  1231. Note that this is the time zone to which Django will convert all
  1232. dates/times -- not necessarily the timezone of the server. For
  1233. example, one server may serve multiple Django-powered sites, each with
  1234. a separate time-zone setting.
  1235. Normally, Django sets the ``os.environ['TZ']`` variable to the time
  1236. zone you specify in the :setting:`TIME_ZONE` setting. Thus, all your views
  1237. and models will automatically operate in the correct time zone.
  1238. However, Django won't set the ``TZ`` environment variable under the
  1239. following conditions:
  1240. * If you're using the manual configuration option as described in
  1241. :ref:`manually configuring settings
  1242. <settings-without-django-settings-module>`, or
  1243. * If you specify ``TIME_ZONE = None``. This will cause Django to fall
  1244. back to using the system timezone.
  1245. If Django doesn't set the ``TZ`` environment variable, it's up to you
  1246. to ensure your processes are running in the correct environment.
  1247. .. note::
  1248. Django cannot reliably use alternate time zones in a Windows
  1249. environment. If you're running Django on Windows, this variable
  1250. must be set to match the system timezone.
  1251. .. _See available choices: http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
  1252. .. setting:: URL_VALIDATOR_USER_AGENT
  1253. URL_VALIDATOR_USER_AGENT
  1254. ------------------------
  1255. Default: ``Django/<version> (http://www.djangoproject.com/)``
  1256. The string to use as the ``User-Agent`` header when checking to see if URLs
  1257. exist (see the ``verify_exists`` option on :class:`~django.db.models.URLField`).
  1258. .. setting:: USE_ETAGS
  1259. USE_ETAGS
  1260. ---------
  1261. Default: ``False``
  1262. A boolean that specifies whether to output the "Etag" header. This saves
  1263. bandwidth but slows down performance. This is used by the ``CommonMiddleware``
  1264. (see :doc:`/topics/http/middleware`) and in the``Cache Framework``
  1265. (see :doc:`/topics/cache`).
  1266. .. setting:: USE_I18N
  1267. USE_I18N
  1268. --------
  1269. Default: ``True``
  1270. A boolean that specifies whether Django's internationalization system should be
  1271. enabled. This provides an easy way to turn it off, for performance. If this is
  1272. set to ``False``, Django will make some optimizations so as not to load the
  1273. internationalization machinery.
  1274. See also :setting:`USE_L10N`
  1275. .. setting:: USE_L10N
  1276. USE_L10N
  1277. --------
  1278. .. versionadded:: 1.2
  1279. Default: ``False``
  1280. A boolean that specifies if data will be localized by default or not. If this
  1281. is set to ``True``, e.g. Django will display numbers and dates using the
  1282. format of the current locale.
  1283. See also :setting:`USE_I18N` and :setting:`LANGUAGE_CODE`
  1284. .. setting:: USE_THOUSAND_SEPARATOR
  1285. USE_THOUSAND_SEPARATOR
  1286. ----------------------
  1287. .. versionadded:: 1.2
  1288. Default: ``False``
  1289. A boolean that specifies wheter to display numbers using a thousand separator.
  1290. If this is set to ``True``, Django will use values from
  1291. :setting:`THOUSAND_SEPARATOR` and :setting:`NUMBER_GROUPING` from current
  1292. locale, to format the number. :setting:`USE_L10N` must be set to ``True``,
  1293. in order to format numbers.
  1294. See also :setting:`THOUSAND_SEPARATOR` and :setting:`NUMBER_GROUPING`.
  1295. .. setting:: YEAR_MONTH_FORMAT
  1296. YEAR_MONTH_FORMAT
  1297. -----------------
  1298. Default: ``'F Y'``
  1299. The default formatting to use for date fields on Django admin change-list
  1300. pages -- and, possibly, by other parts of the system -- in cases when only the
  1301. year and month are displayed.
  1302. For example, when a Django admin change-list page is being filtered by a date
  1303. drilldown, the header for a given month displays the month and the year.
  1304. Different locales have different formats. For example, U.S. English would say
  1305. "January 2006," whereas another locale might say "2006/January."
  1306. See :tfilter:`allowed date format strings <date>`. See also
  1307. :setting:`DATE_FORMAT`, :setting:`DATETIME_FORMAT`, :setting:`TIME_FORMAT`
  1308. and :setting:`MONTH_DAY_FORMAT`.
  1309. Deprecated settings
  1310. ===================
  1311. .. setting:: CACHE_BACKEND
  1312. CACHE_BACKEND
  1313. -------------
  1314. .. deprecated:: 1.3
  1315. This setting has been replaced by :setting:`BACKEND <CACHES-BACKEND>` in
  1316. :setting:`CACHES`.
  1317. .. setting:: DATABASE_ENGINE
  1318. DATABASE_ENGINE
  1319. ---------------
  1320. .. deprecated:: 1.2
  1321. This setting has been replaced by :setting:`ENGINE` in
  1322. :setting:`DATABASES`.
  1323. .. setting:: DATABASE_HOST
  1324. DATABASE_HOST
  1325. -------------
  1326. .. deprecated:: 1.2
  1327. This setting has been replaced by :setting:`HOST` in
  1328. :setting:`DATABASES`.
  1329. .. setting:: DATABASE_NAME
  1330. DATABASE_NAME
  1331. -------------
  1332. .. deprecated:: 1.2
  1333. This setting has been replaced by :setting:`NAME` in
  1334. :setting:`DATABASES`.
  1335. .. setting:: DATABASE_OPTIONS
  1336. DATABASE_OPTIONS
  1337. ----------------
  1338. .. deprecated:: 1.2
  1339. This setting has been replaced by :setting:`OPTIONS` in
  1340. :setting:`DATABASES`.
  1341. .. setting:: DATABASE_PASSWORD
  1342. DATABASE_PASSWORD
  1343. -----------------
  1344. .. deprecated:: 1.2
  1345. This setting has been replaced by :setting:`PASSWORD` in
  1346. :setting:`DATABASES`.
  1347. .. setting:: DATABASE_PORT
  1348. DATABASE_PORT
  1349. -------------
  1350. .. deprecated:: 1.2
  1351. This setting has been replaced by :setting:`PORT` in
  1352. :setting:`DATABASES`.
  1353. .. setting:: DATABASE_USER
  1354. DATABASE_USER
  1355. -------------
  1356. .. deprecated:: 1.2
  1357. This setting has been replaced by :setting:`USER` in
  1358. :setting:`DATABASES`.
  1359. .. setting:: IGNORABLE_404_ENDS
  1360. IGNORABLE_404_ENDS
  1361. ------------------
  1362. .. deprecated:: 1.4
  1363. This setting has been superseded by :setting:`IGNORABLE_404_URLS`.
  1364. .. setting:: IGNORABLE_404_STARTS
  1365. IGNORABLE_404_STARTS
  1366. --------------------
  1367. .. deprecated:: 1.4
  1368. This setting has been superseded by :setting:`IGNORABLE_404_URLS`.
  1369. .. setting:: TEST_DATABASE_CHARSET
  1370. TEST_DATABASE_CHARSET
  1371. ---------------------
  1372. .. deprecated:: 1.2
  1373. This setting has been replaced by :setting:`TEST_CHARSET` in
  1374. :setting:`DATABASES`.
  1375. .. setting:: TEST_DATABASE_COLLATION
  1376. TEST_DATABASE_COLLATION
  1377. -----------------------
  1378. .. deprecated:: 1.2
  1379. This setting has been replaced by :setting:`TEST_COLLATION` in
  1380. :setting:`DATABASES`.
  1381. .. setting:: TEST_DATABASE_NAME
  1382. TEST_DATABASE_NAME
  1383. ------------------
  1384. .. deprecated:: 1.2
  1385. This setting has been replaced by :setting:`TEST_NAME` in
  1386. :setting:`DATABASES`.