Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 649 lines (533 sloc) 22.662 kB
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
1 # Default Django settings. Override these with settings in the module
2 # pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
3
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
4 # This is defined here as a do-nothing function because we can't import
5 # django.utils.translation -- that module depends on the settings.
6 gettext_noop = lambda s: s
5cf8f68 @jacobian Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacobian authored
7
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
8 ####################
9 # CORE #
10 ####################
11
12 DEBUG = False
5d863f1 @adrianholovaty Fixed #603 -- Added template debugging errors to pretty error-page ou…
adrianholovaty authored
13 TEMPLATE_DEBUG = False
a08b2dd @adrianholovaty Negligible comment typo fixes
adrianholovaty authored
14
15 # Whether the framework should propagate raw exceptions rather than catching
bce890a @jezdez Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bern…
jezdez authored
16 # them. This is useful under some testing situations and should never be used
a08b2dd @adrianholovaty Negligible comment typo fixes
adrianholovaty authored
17 # on a live site.
8c9fcee @spookylukey Added DEBUG_PROPAGATE_EXCEPTIONS setting that helps testing under e.g…
spookylukey authored
18 DEBUG_PROPAGATE_EXCEPTIONS = False
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
19
20 # Whether to use the "Etag" header. This saves bandwidth but slows down performance.
21 USE_ETAGS = False
22
d3abdd8 @adrianholovaty Removed hard-coded Adrian and Jacob in global_settings.ADMINS
adrianholovaty authored
23 # People who get code error notifications.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
24 # In the format [('Full Name', 'email@example.com'), ('Full Name', 'anotheremail@example.com')]
25 ADMINS = []
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
26
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
27 # List of IP addresses, as strings, that:
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
28 # * See debug comments, when DEBUG is true
29 # * Receive x-headers
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
30 INTERNAL_IPS = []
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
31
d51fb74 @carljm Added a new required ALLOWED_HOSTS setting for HTTP host header valid…
carljm authored
32 # Hosts/domain names that are valid for this site.
33 # "*" matches anything, ".example.com" matches example.com and all subdomains
34 ALLOWED_HOSTS = []
35
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
36 # Local time zone for this installation. All choices can be found here:
4d42dc3 @malcolmt Changed the URL reference for timezone specifications. It looks like …
malcolmt authored
37 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
9b1cb75 @aaugustin Added support for time zones. Thanks Luke Plant for the review. Fixed…
aaugustin authored
38 # systems may support all possibilities). When USE_TZ is True, this is
39 # interpreted as the default user time zone.
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
40 TIME_ZONE = 'America/Chicago'
785bf0d @aaugustin Reverted unintentional change in aff9b2f.
aaugustin authored
41
9b1cb75 @aaugustin Added support for time zones. Thanks Luke Plant for the review. Fixed…
aaugustin authored
42 # If you set this to True, Django will use timezone-aware datetimes.
43 USE_TZ = False
44
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
45 # Language code for this installation. All choices can be found here:
5f51964 @malcolmt Changed the location of language codes to match the project settings …
malcolmt authored
46 # http://www.i18nguy.com/unicode/language-identifiers.html
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
47 LANGUAGE_CODE = 'en-us'
48
efa3f71 @carljm Remove inaccurate comment regarding language names.
carljm authored
49 # Languages we provide translations for, out of the box.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
50 LANGUAGES = [
6ca475d @claudep Merged core translations from 1.5 branch
claudep authored
51 ('af', gettext_noop('Afrikaans')),
8c399ba fixed #2302: added arabic translation. thx Ahmad Alhashemi.
Georg Bauer authored
52 ('ar', gettext_noop('Arabic')),
1c660d0 @claudep Added new supported languages
claudep authored
53 ('ast', gettext_noop('Asturian')),
4eb0605 @jezdez Added Azerbaijani and Urdu to list of supported languages and added i…
jezdez authored
54 ('az', gettext_noop('Azerbaijani')),
5152b55 @malcolmt Fixed #4283 -- Added Bulgarian translation. Thanks Jordan Dimov.
malcolmt authored
55 ('bg', gettext_noop('Bulgarian')),
6ca475d @claudep Merged core translations from 1.5 branch
claudep authored
56 ('be', gettext_noop('Belarusian')),
cca3862 @freakboy3742 Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
freakboy3742 authored
57 ('bn', gettext_noop('Bengali')),
6ca475d @claudep Merged core translations from 1.5 branch
claudep authored
58 ('br', gettext_noop('Breton')),
53eeab6 @jezdez Fixed Bosnian language code introduced in r12322.
jezdez authored
59 ('bs', gettext_noop('Bosnian')),
278e224 @malcolmt Fixed #3329 -- Added Catalan (ca) translation. Thanks Marc Fargas.
malcolmt authored
60 ('ca', gettext_noop('Catalan')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
61 ('cs', gettext_noop('Czech')),
62 ('cy', gettext_noop('Welsh')),
63 ('da', gettext_noop('Danish')),
64 ('de', gettext_noop('German')),
65 ('el', gettext_noop('Greek')),
66 ('en', gettext_noop('English')),
114b70c @fifieldt Fixed #21237 -- Added Australian English (en_AU) to locale conf
fifieldt authored
67 ('en-au', gettext_noop('Australian English')),
1ff7ed2 @jezdez Added British English translation. Refs #11637.
jezdez authored
68 ('en-gb', gettext_noop('British English')),
e47b92d @jezdez Added Esperanto to the list of languages. Refs #17822.
jezdez authored
69 ('eo', gettext_noop('Esperanto')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
70 ('es', gettext_noop('Spanish')),
75ac6c2 @freakboy3742 Fixed #14064 -- Corrected spelling of Argentinian. There are argument…
freakboy3742 authored
71 ('es-ar', gettext_noop('Argentinian Spanish')),
7536f63 @freakboy3742 Fixed #14768 -- Added an es_MX locale and initial translation. Thanks…
freakboy3742 authored
72 ('es-mx', gettext_noop('Mexican Spanish')),
b46cbc4 @jezdez Fixed #15608 -- Added Nicaraguan Spanish locale (format file only). T…
jezdez authored
73 ('es-ni', gettext_noop('Nicaraguan Spanish')),
6ca475d @claudep Merged core translations from 1.5 branch
claudep authored
74 ('es-ve', gettext_noop('Venezuelan Spanish')),
cca3862 @freakboy3742 Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
freakboy3742 authored
75 ('et', gettext_noop('Estonian')),
87ca6ae @malcolmt Fixed #6607 -- Added a new Basque (eu) translation. Thanks ibonso@gma…
malcolmt authored
76 ('eu', gettext_noop('Basque')),
786fab6 @malcolmt Fixed #4624 -- Added new Persian (fa) translation. Thanks, Reza Moham…
malcolmt authored
77 ('fa', gettext_noop('Persian')),
2535c91 fixed #2617: added finnish translation
Georg Bauer authored
78 ('fi', gettext_noop('Finnish')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
79 ('fr', gettext_noop('French')),
4142d15 @Bouke Fixed #21388 -- Corrected language code for Frisian
Bouke authored
80 ('fy', gettext_noop('Frisian')),
99b200d @malcolmt Changed the name of the "ga" locale to "Irish" in the settings file.
malcolmt authored
81 ('ga', gettext_noop('Irish')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
82 ('gl', gettext_noop('Galician')),
83 ('he', gettext_noop('Hebrew')),
e31ed8f @malcolmt Fixed #9574 -- Hindi translation from Thejaswi Puthraya.
malcolmt authored
84 ('hi', gettext_noop('Hindi')),
478926f @malcolmt Fixed #5141 -- Added Croation translation. Thanks, Aljosa Mohorovic.
malcolmt authored
85 ('hr', gettext_noop('Croatian')),
cca3862 @freakboy3742 Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
freakboy3742 authored
86 ('hu', gettext_noop('Hungarian')),
6ca475d @claudep Merged core translations from 1.5 branch
claudep authored
87 ('ia', gettext_noop('Interlingua')),
b5a628b @jezdez Fixed #13496 - Added Indonesian translation (id). Thanks, Selwin Ong.
jezdez authored
88 ('id', gettext_noop('Indonesian')),
1c660d0 @claudep Added new supported languages
claudep authored
89 ('io', gettext_noop('Ido')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
90 ('is', gettext_noop('Icelandic')),
91 ('it', gettext_noop('Italian')),
92 ('ja', gettext_noop('Japanese')),
68e4366 @malcolmt Fixed #6617 -- Added new Georgian (ka) translation from David Avsajan…
malcolmt authored
93 ('ka', gettext_noop('Georgian')),
661139a @jezdez Added Kazakh translation. Refs #17822.
jezdez authored
94 ('kk', gettext_noop('Kazakh')),
972e77f @malcolmt Fixed #5279 -- Added Khmer translation. Thanks, Sengtha Chay!
malcolmt authored
95 ('km', gettext_noop('Khmer')),
b1fbfb3 @malcolmt Fixed #3251 -- Added Kannada (kn) translations. Thanks to the volunte…
malcolmt authored
96 ('kn', gettext_noop('Kannada')),
cca3862 @freakboy3742 Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
freakboy3742 authored
97 ('ko', gettext_noop('Korean')),
6ca475d @claudep Merged core translations from 1.5 branch
claudep authored
98 ('lb', gettext_noop('Luxembourgish')),
7ecd486 @jacobian Fixed #7458: added Lithuanian to LANGUAGES.
jacobian authored
99 ('lt', gettext_noop('Lithuanian')),
cca3862 @freakboy3742 Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
freakboy3742 authored
100 ('lv', gettext_noop('Latvian')),
4717291 @malcolmt Fixed #3093 -- Added Macedonian translation from Georgi Stanojevski
malcolmt authored
101 ('mk', gettext_noop('Macedonian')),
aa4061d @freakboy3742 Fixed #13651 -- Added Malayalam (ml) translation. Thanks to rajeesh.
freakboy3742 authored
102 ('ml', gettext_noop('Malayalam')),
7202eb8 @freakboy3742 Fixed #13094 -- Added Mongolian translation. Thanks to Urangua.
freakboy3742 authored
103 ('mn', gettext_noop('Mongolian')),
1c660d0 @claudep Added new supported languages
claudep authored
104 ('mr', gettext_noop('Marathi')),
0a22f7a @claudep Added Burmese language
claudep authored
105 ('my', gettext_noop('Burmese')),
77c1384 @jezdez Fixed #11068 - Introduced new language code "nb" for Norwegian Bokmål…
jezdez authored
106 ('nb', gettext_noop('Norwegian Bokmal')),
830900c @jezdez Added Nepali translation. Refs #17822.
jezdez authored
107 ('ne', gettext_noop('Nepali')),
108 ('nl', gettext_noop('Dutch')),
df44485 @jezdez Fixed #13096 - Added Norwegian Nynorsk translation. Thanks, Håvard Gr…
jezdez authored
109 ('nn', gettext_noop('Norwegian Nynorsk')),
ab76467 @claudep Added Ossetic language
claudep authored
110 ('os', gettext_noop('Ossetic')),
fa2159f @jezdez Fixed #14479 -- Added initial Punjabi (pa) translation. Thanks, A S A…
jezdez authored
111 ('pa', gettext_noop('Punjabi')),
0d24050 fixed #2911: added polish to the default languages
Georg Bauer authored
112 ('pl', gettext_noop('Polish')),
62c3a7a @malcolmt Fixed #9410 -- I did not spell Portuguese correctly 18 months ago. Fi…
malcolmt authored
113 ('pt', gettext_noop('Portuguese')),
42ba428 @malcolmt Fixed #6910 -- Updated Brazilian Portugese translation from Guilherme…
malcolmt authored
114 ('pt-br', gettext_noop('Brazilian Portuguese')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
115 ('ro', gettext_noop('Romanian')),
116 ('ru', gettext_noop('Russian')),
117 ('sk', gettext_noop('Slovak')),
118 ('sl', gettext_noop('Slovenian')),
33f4473 @freakboy3742 Fixed #12719 -- Added initial Albanian translation. Thanks to Besnik …
freakboy3742 authored
119 ('sq', gettext_noop('Albanian')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
120 ('sr', gettext_noop('Serbian')),
18c31f6 @jezdez Fixed #12220 - Added Serbian Latin to list of languages in global set…
jezdez authored
121 ('sr-latn', gettext_noop('Serbian Latin')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
122 ('sv', gettext_noop('Swedish')),
e540f27 @jezdez Added Swahili translation. Refs #17822.
jezdez authored
123 ('sw', gettext_noop('Swahili')),
f3e3869 fixed #2371: added tamil translation
Georg Bauer authored
124 ('ta', gettext_noop('Tamil')),
20a240c @malcolmt Fixed #3673 -- Added new Telugu (te) localisation. Thanks, pavithran s.
malcolmt authored
125 ('te', gettext_noop('Telugu')),
b69182f @malcolmt Added a couple of missed pieces from r9376. Refs #9542.
malcolmt authored
126 ('th', gettext_noop('Thai')),
9194038 fixed #2623: added new turkish translation
Georg Bauer authored
127 ('tr', gettext_noop('Turkish')),
9d1d1f0 @jezdez Added Tatar translation. Refs #17822.
jezdez authored
128 ('tt', gettext_noop('Tatar')),
6ca475d @claudep Merged core translations from 1.5 branch
claudep authored
129 ('udm', gettext_noop('Udmurt')),
ec4a143 @adrianholovaty Made django/utils/translation.py into a package django/utils/translat…
adrianholovaty authored
130 ('uk', gettext_noop('Ukrainian')),
4eb0605 @jezdez Added Azerbaijani and Urdu to list of supported languages and added i…
jezdez authored
131 ('ur', gettext_noop('Urdu')),
a8b975e @jezdez Fixed #11463 - Added Vietnamese translation. Thanks Erik Unger, clous…
jezdez authored
132 ('vi', gettext_noop('Vietnamese')),
c0a2388 @Bouke Fixed #18149 -- Changed language codes for Chinese
Bouke authored
133 ('zh-hans', gettext_noop('Simplified Chinese')),
134 ('zh-hant', gettext_noop('Traditional Chinese')),
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
135 ]
5cf8f68 @jacobian Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacobian authored
136
ca19773 fixed #1660: added support functions and tags for bidi language support
Georg Bauer authored
137 # Languages using BiDi (right-to-left) layout
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
138 LANGUAGES_BIDI = ["he", "ar", "fa", "ur"]
ca19773 fixed #1660: added support functions and tags for bidi language support
Georg Bauer authored
139
4a324ba @adrianholovaty Added USE_I18N setting, which lets you turn off internationalization …
adrianholovaty authored
140 # If you set this to False, Django will make some optimizations so as not
141 # to load the internationalization machinery.
142 USE_I18N = True
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
143 LOCALE_PATHS = []
8c98f39 @sergeykolosov Fixed #15318 -- Added settings for language cookie max-age, path, domain
sergeykolosov authored
144
145 # Settings for language cookie
efed04b @malcolmt Fixed #5603 -- Allow customization of the language cookie name. Thank…
malcolmt authored
146 LANGUAGE_COOKIE_NAME = 'django_language'
8c98f39 @sergeykolosov Fixed #15318 -- Added settings for language cookie max-age, path, domain
sergeykolosov authored
147 LANGUAGE_COOKIE_AGE = None
148 LANGUAGE_COOKIE_DOMAIN = None
149 LANGUAGE_COOKIE_PATH = '/'
150
1607ace @gdub Fixed #5978 -- Gave `LOCALE_PATHS` a default setting of an empty tupl…
gdub authored
151
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
152 # If you set this to True, Django will format dates, numbers and calendars
9b1cb75 @aaugustin Added support for time zones. Thanks Luke Plant for the review. Fixed…
aaugustin authored
153 # according to user current locale.
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
154 USE_L10N = False
155
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
156 # Not-necessarily-technical managers of the site. They get broken link
94af19c @adrianholovaty Changed e-mail to email throughout documentation and codebase. The on…
adrianholovaty authored
157 # notifications and other various emails.
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
158 MANAGERS = ADMINS
159
ab9aacd @adrianholovaty Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_C…
adrianholovaty authored
160 # Default content type and charset to use for all HttpResponse objects, if a
161 # MIME type isn't manually specified. These are used to construct the
162 # Content-Type header.
163 DEFAULT_CONTENT_TYPE = 'text/html'
164 DEFAULT_CHARSET = 'utf-8'
36fc73a @adrianholovaty Fixed #333 -- Added DEFAULT_MIME_TYPE setting, and set it to 'text/ht…
adrianholovaty authored
165
953badb @malcolmt Merged Unicode branch into trunk (r4952:5608). This should be fully
malcolmt authored
166 # Encoding of files read from disk (template and initial SQL files).
167 FILE_CHARSET = 'utf-8'
168
2c8267b @Fandekasp Fixed #17899 -- Rewrote [Ee]-mail to [Ee]mail
Fandekasp authored
169 # Email address that error messages come from.
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
170 SERVER_EMAIL = 'root@localhost'
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
171
f1cc2be @claudep Fixed #18575 -- Empty DATABASES should default to dummy backend
claudep authored
172 # Database connection info. If left empty, will default to the dummy backend.
173 DATABASES = {}
ff60c5f @freakboy3742 Fixed #1142 -- Added multiple database support.
freakboy3742 authored
174
20c8aa2 @adrianholovaty Fixed various dodgy behaviours
adrianholovaty authored
175 # Classes used to implement DB routing behavior.
1b3dc8a @freakboy3742 Fixed #12540, #12541 -- Added database routers, allowing for configur…
freakboy3742 authored
176 DATABASE_ROUTERS = []
177
aba5389 @freakboy3742 Fixed #10355 -- Added an API for pluggable e-mail backends.
freakboy3742 authored
178 # The email backend to use. For possible shortcuts see django.core.mail.
179 # The default is to use the SMTP backend.
180 # Third-party backends can be specified by providing a Python path
181 # to a module that defines an EmailBackend class.
e07560a @freakboy3742 Modified the way EMAIL_BACKEND is specified to make it consistent wit…
freakboy3742 authored
182 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
aba5389 @freakboy3742 Fixed #10355 -- Added an API for pluggable e-mail backends.
freakboy3742 authored
183
94af19c @adrianholovaty Changed e-mail to email throughout documentation and codebase. The on…
adrianholovaty authored
184 # Host for sending email.
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
185 EMAIL_HOST = 'localhost'
186
94af19c @adrianholovaty Changed e-mail to email throughout documentation and codebase. The on…
adrianholovaty authored
187 # Port for sending email.
8d70ed4 @adrianholovaty Fixed #1555 -- Added EMAIL_PORT setting. Thanks, bde3
adrianholovaty authored
188 EMAIL_PORT = 25
189
fe24eca @adrianholovaty Fixed #1529 -- Added support for authenticated SMTP to django.core.ma…
adrianholovaty authored
190 # Optional SMTP authentication information for EMAIL_HOST.
191 EMAIL_HOST_USER = ''
192 EMAIL_HOST_PASSWORD = ''
7a84ad9 @malcolmt Fixed #2897 -- Added support for TLS connections to email handling. T…
malcolmt authored
193 EMAIL_USE_TLS = False
59ebe39 @claudep Fixed #17471 -- Added smtplib.SMTP_SSL connection option for SMTP bac…
claudep authored
194 EMAIL_USE_SSL = False
00535e8 @andialbrecht Fixed #20743 -- Added support for keyfile/certfile in SMTP connections.
andialbrecht authored
195 EMAIL_SSL_CERTFILE = None
196 EMAIL_SSL_KEYFILE = None
5472d18 @jpadilla Fixed #23461 -- Added EMAIL_TIMEOUT setting
jpadilla authored
197 EMAIL_TIMEOUT = None
fe24eca @adrianholovaty Fixed #1529 -- Added support for authenticated SMTP to django.core.ma…
adrianholovaty authored
198
1873c95 @adrianholovaty Added INSTALLED_APPS to global_settings. It's an empty tuple by default.
adrianholovaty authored
199 # List of strings representing installed apps.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
200 INSTALLED_APPS = []
1873c95 @adrianholovaty Added INSTALLED_APPS to global_settings. It's an empty tuple by default.
adrianholovaty authored
201
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
202 # List of locations of the template source files, in search order.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
203 TEMPLATE_DIRS = []
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
204
7aefff7 @adrianholovaty Fixed #582 -- Added support for loading templates from Python eggs, a…
adrianholovaty authored
205 # List of callables that know how to import templates from various sources.
206 # See the comments in django/core/template/loader.py for interface
207 # documentation.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
208 TEMPLATE_LOADERS = [
44b9076 @freakboy3742 Fixed #6262 -- Added a cached template loader, and modified existing …
freakboy3742 authored
209 'django.template.loaders.filesystem.Loader',
210 'django.template.loaders.app_directories.Loader',
dfb4cb9 @alasdairnicol Fixed #21285 -- Fixed E121,E122 pep8 warnings
alasdairnicol authored
211 # 'django.template.loaders.eggs.Loader',
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
212 ]
7aefff7 @adrianholovaty Fixed #582 -- Added support for loading templates from Python eggs, a…
adrianholovaty authored
213
f69cf70 @adrianholovaty MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards…
adrianholovaty authored
214 # List of processors used by RequestContext to populate the context.
49fd163 @adrianholovaty Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you speci…
adrianholovaty authored
215 # Each one should be a callable that takes the request object as its
216 # only parameter and returns a dictionary to add to the context.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
217 TEMPLATE_CONTEXT_PROCESSORS = [
67d4289 @jezdez Fixed #12066 - Moved auth context processor from core to the auth app…
jezdez authored
218 'django.contrib.auth.context_processors.auth',
92e8f1f @aaugustin Moved context_processors from django.core to django.template.
aaugustin authored
219 'django.template.context_processors.debug',
220 'django.template.context_processors.i18n',
221 'django.template.context_processors.media',
222 'django.template.context_processors.static',
223 'django.template.context_processors.tz',
224 # 'django.template.context_processors.request',
25020dd @spookylukey Fixed #4604 - Configurable message passing system, supporting anonymo…
spookylukey authored
225 'django.contrib.messages.context_processors.messages',
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
226 ]
49fd163 @adrianholovaty Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you speci…
adrianholovaty authored
227
e0c915e @adrianholovaty Added TEMPLATE_STRING_IF_INVALID setting, which specifies what the te…
adrianholovaty authored
228 # Output to use in template system for invalid (e.g. misspelled) variables.
229 TEMPLATE_STRING_IF_INVALID = ''
230
1acfd62 @aaugustin Added initial support for loading template engines.
aaugustin authored
231 TEMPLATES = []
232
94af19c @adrianholovaty Changed e-mail to email throughout documentation and codebase. The on…
adrianholovaty authored
233 # Default email address to use for various automated correspondence from
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
234 # the site managers.
235 DEFAULT_FROM_EMAIL = 'webmaster@localhost'
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
236
2d1303b @jacobian Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]…
jacobian authored
237 # Subject-line prefix for email messages send with django.core.mail.mail_admins
238 # or ...mail_managers. Make sure to include the trailing space.
239 EMAIL_SUBJECT_PREFIX = '[Django] '
240
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
241 # Whether to append trailing slashes to URLs.
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
242 APPEND_SLASH = True
243
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
244 # Whether to prepend the "www." subdomain to URLs that don't have it.
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
245 PREPEND_WWW = False
246
bfcecbf @malcolmt Changed/fixed the way Django handles SCRIPT_NAME and PATH_INFO (or
malcolmt authored
247 # Override the server-derived value of SCRIPT_NAME
248 FORCE_SCRIPT_NAME = None
249
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
250 # List of compiled regular expression objects representing User-Agent strings
251 # that are not allowed to visit any page, systemwide. Use this for bad
252 # robots/crawlers. Here are a few examples:
253 # import re
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
254 # DISALLOWED_USER_AGENTS = [
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
255 # re.compile(r'^NaverBot.*'),
256 # re.compile(r'^EmailSiphon.*'),
257 # re.compile(r'^SiteSucker.*'),
258 # re.compile(r'^sohu-search')
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
259 # ]
260 DISALLOWED_USER_AGENTS = []
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
261
262 ABSOLUTE_URL_OVERRIDES = {}
263
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
264 # List of strings representing allowed prefixes for the {% ssi %} tag.
265 # Example: ['/home/html', '/var/www']
266 ALLOWED_INCLUDE_ROOTS = []
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
267
171df93 @spookylukey Fixed #15954 - New IGNORABLE_404_URLS setting that allows more powerf…
spookylukey authored
268 # List of compiled regular expression objects representing URLs that need not
50a985b @aaugustin Fixed #19099 -- Split broken link emails out of common middleware.
aaugustin authored
269 # be reported by BrokenLinkEmailsMiddleware. Here are a few examples:
171df93 @spookylukey Fixed #15954 - New IGNORABLE_404_URLS setting that allows more powerf…
spookylukey authored
270 # import re
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
271 # IGNORABLE_404_URLS = [
171df93 @spookylukey Fixed #15954 - New IGNORABLE_404_URLS setting that allows more powerf…
spookylukey authored
272 # re.compile(r'^/apple-touch-icon.*\.png$'),
273 # re.compile(r'^/favicon.ico$),
274 # re.compile(r'^/robots.txt$),
275 # re.compile(r'^/phpmyadmin/),
276 # re.compile(r'\.(cgi|php|pl)$'),
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
277 # ]
278 IGNORABLE_404_URLS = []
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
279
897d24b @adrianholovaty Fixed #95 -- Added SECRET_KEY setting instead of hard-coding keys tha…
adrianholovaty authored
280 # A secret key for this particular Django installation. Used in secret-key
281 # hashing algorithms. Set this in your settings, or Django will complain
282 # loudly.
283 SECRET_KEY = ''
284
7899568 @jacobian File storage refactoring, adding far more flexibility to Django's fil…
jacobian authored
285 # Default file storage mechanism that holds media.
286 DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
287
5844cdc @adrianholovaty Small grammar fix in 'user-uploaded files' comment from [14560]
adrianholovaty authored
288 # Absolute filesystem path to the directory that will hold user-uploaded files.
17f3e92 @aaugustin Fixed #18397 -- Avoided referencing lawrence.com.
aaugustin authored
289 # Example: "/var/www/example.com/media/"
5defabc @adrianholovaty Reordered MEDIA_ROOT and MEDIA_URL in global_settings so they're not …
adrianholovaty authored
290 MEDIA_ROOT = ''
291
292 # URL that handles the media served from MEDIA_ROOT.
17f3e92 @aaugustin Fixed #18397 -- Avoided referencing lawrence.com.
aaugustin authored
293 # Examples: "http://example.com/media/", "http://media.example.com/"
5defabc @adrianholovaty Reordered MEDIA_ROOT and MEDIA_URL in global_settings so they're not …
adrianholovaty authored
294 MEDIA_URL = ''
295
17f3e92 @aaugustin Fixed #18397 -- Avoided referencing lawrence.com.
aaugustin authored
296 # Absolute path to the directory static files should be collected to.
297 # Example: "/var/www/example.com/static/"
4befb30 @loic Fixed #21581 -- Fixed a number of issues with collectstatic.
loic authored
298 STATIC_ROOT = None
33d8fcd @jezdez Fixed #14693, #14709 -- Backwards incompatible change to rectify the …
jezdez authored
299
300 # URL that handles the static files served from STATIC_ROOT.
17f3e92 @aaugustin Fixed #18397 -- Avoided referencing lawrence.com.
aaugustin authored
301 # Example: "http://example.com/static/", "http://static.example.com/"
33d8fcd @jezdez Fixed #14693, #14709 -- Backwards incompatible change to rectify the …
jezdez authored
302 STATIC_URL = None
303
d725cc9 @jacobian Fixed #2070: refactored Django's file upload capabilities.
jacobian authored
304 # List of upload handler classes to be applied in order.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
305 FILE_UPLOAD_HANDLERS = [
d725cc9 @jacobian Fixed #2070: refactored Django's file upload capabilities.
jacobian authored
306 'django.core.files.uploadhandler.MemoryFileUploadHandler',
307 'django.core.files.uploadhandler.TemporaryFileUploadHandler',
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
308 ]
d725cc9 @jacobian Fixed #2070: refactored Django's file upload capabilities.
jacobian authored
309
310 # Maximum size, in bytes, of a request before it will be streamed to the
311 # file system instead of into memory.
3bc0d46 @coagulant Fixed all E261 warnings
coagulant authored
312 FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
d725cc9 @jacobian Fixed #2070: refactored Django's file upload capabilities.
jacobian authored
313
314 # Directory in which upload streamed files will be temporarily saved. A value of
315 # `None` will make Django use the operating system's default temporary directory
316 # (i.e. "/tmp" on *nix systems).
317 FILE_UPLOAD_TEMP_DIR = None
318
ff420b4 @jacobian Fixed #8454: added a FILE_UPLOAD_PERMISSIONS setting to control the p…
jacobian authored
319 # The numeric mode to set newly-uploaded files to. The value should be a mode
320 # you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html.
321 FILE_UPLOAD_PERMISSIONS = None
322
6bdb3b1 @raumkraut Fixed #13518 -- Added FILE_UPLOAD_DIRECTORY_PERMISSIONS setting
raumkraut authored
323 # The numeric mode to assign to newly-created directories, when uploading files.
324 # The value should be a mode as you'd pass to os.chmod;
325 # see http://docs.python.org/lib/os-file-dir.html.
326 FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
327
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
328 # Python module path where user will place custom format definition.
329 # The directory where this setting is pointing should contain subdirectories
330 # named as the locales, containing a formats.py file
331 # (i.e. "myproject.locale" for myproject/locale/en/formats.py etc. use)
332 FORMAT_MODULE_PATH = None
333
d4df074 @adrianholovaty Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrianholovaty authored
334 # Default formatting for date objects. See all available format strings here:
bca8aed @jezdez Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
335 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
d4df074 @adrianholovaty Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrianholovaty authored
336 DATE_FORMAT = 'N j, Y'
337
338 # Default formatting for datetime objects. See all available format strings here:
bca8aed @jezdez Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
339 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
d4df074 @adrianholovaty Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrianholovaty authored
340 DATETIME_FORMAT = 'N j, Y, P'
341
342 # Default formatting for time objects. See all available format strings here:
bca8aed @jezdez Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
343 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
d4df074 @adrianholovaty Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrianholovaty authored
344 TIME_FORMAT = 'P'
345
ab2fb16 @adrianholovaty Fixed #2062 -- Added YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT settings,…
adrianholovaty authored
346 # Default formatting for date objects when only the year and month are relevant.
347 # See all available format strings here:
bca8aed @jezdez Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
348 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
ab2fb16 @adrianholovaty Fixed #2062 -- Added YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT settings,…
adrianholovaty authored
349 YEAR_MONTH_FORMAT = 'F Y'
350
351 # Default formatting for date objects when only the month and day are relevant.
352 # See all available format strings here:
bca8aed @jezdez Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
353 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
ab2fb16 @adrianholovaty Fixed #2062 -- Added YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT settings,…
adrianholovaty authored
354 MONTH_DAY_FORMAT = 'F j'
355
f93f056 @jezdez Fixed #10260 - Refactored internationalization documentation. Thanks,…
jezdez authored
356 # Default short formatting for date objects. See all available format strings here:
bca8aed @jezdez Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
357 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
358 SHORT_DATE_FORMAT = 'm/d/Y'
359
360 # Default short formatting for datetime objects.
361 # See all available format strings here:
bca8aed @jezdez Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
362 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
363 SHORT_DATETIME_FORMAT = 'm/d/Y P'
364
365 # Default formats to be used when parsing dates from input boxes, in order
366 # See all available format string here:
367 # http://docs.python.org/library/datetime.html#strftime-behavior
368 # * Note that these format strings are different from the ones to display dates
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
369 DATE_INPUT_FORMATS = [
3bc0d46 @coagulant Fixed all E261 warnings
coagulant authored
370 '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
371 '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
372 '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
373 '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
374 '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
375 ]
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
376
377 # Default formats to be used when parsing times from input boxes, in order
378 # See all available format string here:
379 # http://docs.python.org/library/datetime.html#strftime-behavior
380 # * Note that these format strings are different from the ones to display dates
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
381 TIME_INPUT_FORMATS = [
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
382 '%H:%M:%S', # '14:30:59'
384c180 @claudep Fixed #19917 -- Added microseconds in default TIME_INPUT_FORMATS
claudep authored
383 '%H:%M:%S.%f', # '14:30:59.000200'
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
384 '%H:%M', # '14:30'
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
385 ]
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
386
387 # Default formats to be used when parsing dates and times from input boxes,
388 # in order
389 # See all available format string here:
390 # http://docs.python.org/library/datetime.html#strftime-behavior
391 # * Note that these format strings are different from the ones to display dates
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
392 DATETIME_INPUT_FORMATS = [
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
393 '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
dce2786 @andrewgodwin Fixed #9459: forms.HiddenInput and DateTime field loses microseconds.…
andrewgodwin authored
394 '%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
395 '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
396 '%Y-%m-%d', # '2006-10-25'
397 '%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
dce2786 @andrewgodwin Fixed #9459: forms.HiddenInput and DateTime field loses microseconds.…
andrewgodwin authored
398 '%m/%d/%Y %H:%M:%S.%f', # '10/25/2006 14:30:59.000200'
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
399 '%m/%d/%Y %H:%M', # '10/25/2006 14:30'
400 '%m/%d/%Y', # '10/25/2006'
401 '%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
dce2786 @andrewgodwin Fixed #9459: forms.HiddenInput and DateTime field loses microseconds.…
andrewgodwin authored
402 '%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
403 '%m/%d/%y %H:%M', # '10/25/06 14:30'
404 '%m/%d/%y', # '10/25/06'
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
405 ]
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
406
407 # First day of week, to be used on calendars
408 # 0 means Sunday, 1 means Monday...
409 FIRST_DAY_OF_WEEK = 0
410
411 # Decimal separator symbol
412 DECIMAL_SEPARATOR = '.'
413
414 # Boolean that sets whether to add thousand separator when formatting numbers
415 USE_THOUSAND_SEPARATOR = False
416
bce890a @jezdez Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bern…
jezdez authored
417 # Number of digits that will be together, when splitting them by
7bb6abe @jezdez Fixed #13702 -- Made sure to actually fall back to the l10n format st…
jezdez authored
418 # THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands...
9233d04 @jezdez Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
419 NUMBER_GROUPING = 0
420
421 # Thousand separator symbol
422 THOUSAND_SEPARATOR = ','
423
bbc3a95 @ikelly Fixed #6007: Added DEFAULT_TABLESPACE and DEFAULT_INDEX_TABLESPACE
ikelly authored
424 # The tablespaces to use for each model when not specified otherwise.
425 DEFAULT_TABLESPACE = ''
426 DEFAULT_INDEX_TABLESPACE = ''
427
524c5fa @spookylukey Fixed #14261 - Added clickjacking protection (X-Frame-Options header)
spookylukey authored
428 # Default X-Frame-Options header value
429 X_FRAME_OPTIONS = 'SAMEORIGIN'
430
893cea2 @freakboy3742 Added protection against spoofing of X_FORWARDED_HOST headers. A secu…
freakboy3742 authored
431 USE_X_FORWARDED_HOST = False
432
41f0d3d @timgraham Removed FastCGI support per deprecation timeline; refs #20766.
timgraham authored
433 # The Python dotted path to the WSGI application that Django's internal server
434 # (runserver) will use. If `None`, the return value of
145a77e @carljm Fixed #16360 -- Added WSGI entrypoint to startproject layout, and ena…
carljm authored
435 # 'django.core.wsgi.get_wsgi_application' is used, thus preserving the same
436 # behavior as previous versions of Django. Otherwise this should point to an
437 # actual WSGI application object.
438 WSGI_APPLICATION = None
439
61f0aff @adrianholovaty Fixed #14597 -- Added a SECURE_PROXY_SSL_HEADER setting for cases whe…
adrianholovaty authored
440 # If your Django app is behind a proxy that sets a header to specify secure
441 # connections, AND that proxy ensures that user-submitted headers with the
442 # same name are ignored (so that people can't spoof it), set this value to
443 # a tuple of (header_name, header_value). For any requests that come in with
444 # that header/value, request.is_secure() will return True.
445 # WARNING! Only set this if you fully understand what you're doing. Otherwise,
446 # you may be opening yourself up to a security risk.
447 SECURE_PROXY_SSL_HEADER = None
448
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
449 ##############
8c09889 @adrianholovaty Removed World-Online-specific stuff from django.conf.global_settings
adrianholovaty authored
450 # MIDDLEWARE #
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
451 ##############
452
453 # List of middleware classes to use. Order is important; in the request phase,
454 # this middleware classes will be applied in the order given, and in the
455 # response phase the middleware will be applied in reverse order.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
456 MIDDLEWARE_CLASSES = [
cdc8c61 @spookylukey Made default MIDDLEWARE_CLASSES same as in project_template.
spookylukey authored
457 'django.middleware.common.CommonMiddleware',
7230a99 @spookylukey Moved contrib.csrf.* to core code.
spookylukey authored
458 'django.middleware.csrf.CsrfViewMiddleware',
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
459 ]
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
460
07889c1 @adrianholovaty Fixed #1 -- Added anonymous session support via middleware and reques…
adrianholovaty authored
461 ############
462 # SESSIONS #
463 ############
464
1101467 @timgraham Limited lines to 119 characters in django/
timgraham authored
465 # Cache to store session data if using the cache session backend.
466 SESSION_CACHE_ALIAS = 'default'
467 # Cookie name. This can be whatever you want.
468 SESSION_COOKIE_NAME = 'sessionid'
469 # Age of cookie, in seconds (default: 2 weeks).
470 SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2
471 # A string like ".example.com", or None for standard domain cookie.
472 SESSION_COOKIE_DOMAIN = None
473 # Whether the session cookie should be secure (https:// only).
474 SESSION_COOKIE_SECURE = False
475 # The path of the session cookie.
476 SESSION_COOKIE_PATH = '/'
477 # Whether to use the non-RFC standard httpOnly flag (IE, FF3+, others)
478 SESSION_COOKIE_HTTPONLY = True
479 # Whether to save the session data on every request.
480 SESSION_SAVE_EVERY_REQUEST = False
481 # Whether a user's session cookie expires when the Web browser is closed.
482 SESSION_EXPIRE_AT_BROWSER_CLOSE = False
483 # The module to store session data
484 SESSION_ENGINE = 'django.contrib.sessions.backends.db'
485 # Directory to store session files if using the file session module. If None,
486 # the backend will use a sensible default.
487 SESSION_FILE_PATH = None
488 # class to serialize session data
489 SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
07889c1 @adrianholovaty Fixed #1 -- Added anonymous session support via middleware and reques…
adrianholovaty authored
490
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
491 #########
492 # CACHE #
493 #########
494
eefb00f @claudep Fixed #18220 -- Removed the CACHE_BACKEND setting, as per official de…
claudep authored
495 # The cache backends to use.
673e6fc @freakboy3742 Fixed #11675 -- Added support for the PyLibMC cache library. In order…
freakboy3742 authored
496 CACHES = {
eefb00f @claudep Fixed #18220 -- Removed the CACHE_BACKEND setting, as per official de…
claudep authored
497 'default': {
498 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
499 }
673e6fc @freakboy3742 Fixed #11675 -- Added support for the PyLibMC cache library. In order…
freakboy3742 authored
500 }
b6fd05e @adrianholovaty Added CACHE_MIDDLEWARE_KEY_PREFIX to global_settings
adrianholovaty authored
501 CACHE_MIDDLEWARE_KEY_PREFIX = ''
79e914e @malcolmt Added CACHE_MIDDLEWARE_SECONDS to global settings and documentation (…
malcolmt authored
502 CACHE_MIDDLEWARE_SECONDS = 600
673e6fc @freakboy3742 Fixed #11675 -- Added support for the PyLibMC cache library. In order…
freakboy3742 authored
503 CACHE_MIDDLEWARE_ALIAS = 'default'
ed114e1 @adrianholovaty Imported Django from private SVN repository (created from r. 8825)
adrianholovaty authored
504
aab3a41 @jacobian Merged multi-auth branch to trunk. See the authentication docs for t…
jacobian authored
505 ##################
506 # AUTHENTICATION #
507 ##################
508
70a0de3 @freakboy3742 Fixed #3011 -- Added swappable auth.User models.
freakboy3742 authored
509 AUTH_USER_MODEL = 'auth.User'
510
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
511 AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
77ab11b @freakboy3742 Refs #2333 - Added 'test' target to django-admin script. Includes add…
freakboy3742 authored
512
5dfe74f @malcolmt Fixed #3185 -- Made values for login, logout and post-login redirect …
malcolmt authored
513 LOGIN_URL = '/accounts/login/'
514
515 LOGOUT_URL = '/accounts/logout/'
516
517 LOGIN_REDIRECT_URL = '/accounts/profile/'
518
fcd837c @spookylukey Fixed #7723 - implemented a secure password reset form that uses a to…
spookylukey authored
519 # The number of days a password reset link is valid for
520 PASSWORD_RESET_TIMEOUT_DAYS = 3
521
dce820f @PaulMcMillan Renovated password hashing. Many thanks to Justine Tunney for help wi…
PaulMcMillan authored
522 # the first hasher in this list is the preferred algorithm. any
523 # password using different algorithms will be converted automatically
524 # upon login
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
525 PASSWORD_HASHERS = [
dce820f @PaulMcMillan Renovated password hashing. Many thanks to Justine Tunney for help wi…
PaulMcMillan authored
526 'django.contrib.auth.hashers.PBKDF2PasswordHasher',
527 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
25f2acf @dstufft Fixed #20138 -- Added BCryptSHA256PasswordHasher
dstufft authored
528 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
dce820f @PaulMcMillan Renovated password hashing. Many thanks to Justine Tunney for help wi…
PaulMcMillan authored
529 'django.contrib.auth.hashers.BCryptPasswordHasher',
530 'django.contrib.auth.hashers.SHA1PasswordHasher',
531 'django.contrib.auth.hashers.MD5PasswordHasher',
f1255a3 @aaugustin Fixed #18144 -- Restored compatibility with SHA1 hashes with empty salt.
aaugustin authored
532 'django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher',
413e374 @PaulMcMillan Fixes #17777 and makes tests run again.
PaulMcMillan authored
533 'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
dce820f @PaulMcMillan Renovated password hashing. Many thanks to Justine Tunney for help wi…
PaulMcMillan authored
534 'django.contrib.auth.hashers.CryptPasswordHasher',
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
535 ]
dce820f @PaulMcMillan Renovated password hashing. Many thanks to Justine Tunney for help wi…
PaulMcMillan authored
536
1daae25 @erikr Fixed #16860 -- Added password validation to django.contrib.auth.
erikr authored
537 AUTH_PASSWORD_VALIDATORS = []
538
f60d428 @jezdez Fixed #12417 -- Added signing functionality, including signing cookie…
jezdez authored
539 ###########
540 # SIGNING #
541 ###########
542
543 SIGNING_BACKEND = 'django.core.signing.TimestampSigner'
544
8e70cef @spookylukey Fixed #9977 - CsrfMiddleware gets template tag added, session depende…
spookylukey authored
545 ########
546 # CSRF #
547 ########
548
549 # Dotted path to callable to be used as view when a request is
550 # rejected by the CSRF middleware.
7230a99 @spookylukey Moved contrib.csrf.* to core code.
spookylukey authored
551 CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
8e70cef @spookylukey Fixed #9977 - CsrfMiddleware gets template tag added, session depende…
spookylukey authored
552
8cbcf1d @spookylukey Fixed #14134 - ability to set cookie 'path' and 'secure' attributes o…
spookylukey authored
553 # Settings for CSRF cookie.
8e70cef @spookylukey Fixed #9977 - CsrfMiddleware gets template tag added, session depende…
spookylukey authored
554 CSRF_COOKIE_NAME = 'csrftoken'
9b729dd @rogerhu Fixed #22185 -- Added settings.CSRF_COOKIE_AGE
rogerhu authored
555 CSRF_COOKIE_AGE = 60 * 60 * 24 * 7 * 52
8e70cef @spookylukey Fixed #9977 - CsrfMiddleware gets template tag added, session depende…
spookylukey authored
556 CSRF_COOKIE_DOMAIN = None
8cbcf1d @spookylukey Fixed #14134 - ability to set cookie 'path' and 'secure' attributes o…
spookylukey authored
557 CSRF_COOKIE_PATH = '/'
558 CSRF_COOKIE_SECURE = False
720888a @aaugustin Fixed #15808 -- Added optional HttpOnly flag to the CSRF Cookie.
aaugustin authored
559 CSRF_COOKIE_HTTPONLY = False
668d53c @gregorth Fixed #21495 -- Added settings.CSRF_HEADER_NAME
gregorth authored
560 CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
8e70cef @spookylukey Fixed #9977 - CsrfMiddleware gets template tag added, session depende…
spookylukey authored
561
25020dd @spookylukey Fixed #4604 - Configurable message passing system, supporting anonymo…
spookylukey authored
562 ############
563 # MESSAGES #
564 ############
565
bce890a @jezdez Fixed #16584 -- Fixed a bunch of typos in code comments. Thanks, Bern…
jezdez authored
566 # Class to use as messages backend
5d5149c @freakboy3742 Advanced deprecation of user-based messages and the LegacyFallbackSto…
freakboy3742 authored
567 MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
25020dd @spookylukey Fixed #4604 - Configurable message passing system, supporting anonymo…
spookylukey authored
568
569 # Default values of MESSAGE_LEVEL and MESSAGE_TAGS are defined within
570 # django.contrib.messages to avoid imports in this settings file.
571
77ab11b @freakboy3742 Refs #2333 - Added 'test' target to django-admin script. Includes add…
freakboy3742 authored
572 ###########
24acca4 @freakboy3742 Fixed #12012 -- Added support for logging. Thanks to Vinay Sajip for …
freakboy3742 authored
573 # LOGGING #
574 ###########
575
576 # The callable to use to configure logging
72c65fe @aaugustin Deprecated django.utils.dictconfig.
aaugustin authored
577 LOGGING_CONFIG = 'logging.config.dictConfig'
24acca4 @freakboy3742 Fixed #12012 -- Added support for logging. Thanks to Vinay Sajip for …
freakboy3742 authored
578
a014ddf @claudep Combined Django DEFAULT_LOGGING with user LOGGING config
claudep authored
579 # Custom logging configuration.
580 LOGGING = {}
24acca4 @freakboy3742 Fixed #12012 -- Added support for logging. Thanks to Vinay Sajip for …
freakboy3742 authored
581
45e55b9 @spookylukey Fixed #14614 - filtering of sensitive information in 500 error reports.
spookylukey authored
582 # Default exception reporter filter class used in case none has been
583 # specifically assigned to the HttpRequest instance.
584 DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFilter'
585
24acca4 @freakboy3742 Fixed #12012 -- Added support for logging. Thanks to Vinay Sajip for …
freakboy3742 authored
586 ###########
77ab11b @freakboy3742 Refs #2333 - Added 'test' target to django-admin script. Includes add…
freakboy3742 authored
587 # TESTING #
588 ###########
589
53b61d9 @freakboy3742 Fixed #12624 -- Modified test runners to be class based.
freakboy3742 authored
590 # The name of the class to use to run the test suite
9012833 @carljm Fixed #17365, #17366, #18727 -- Switched to discovery test runner.
carljm authored
591 TEST_RUNNER = 'django.test.runner.DiscoverRunner'
d78e2ae @freakboy3742 Refs #2333 - Added a TEST_DATABASE_NAME setting that can be used to o…
freakboy3742 authored
592
8c12d51 @andrewgodwin Fixed #22487: Optional rollback emulation for migrated apps
andrewgodwin authored
593 # Apps that don't need to be serialized at test database creation time
594 # (only apps with migrations are to start with)
595 TEST_NON_SERIALIZED_APPS = []
596
f2582eb @freakboy3742 Fixes #2333 -- Added test fixtures framework.
freakboy3742 authored
597 ############
598 # FIXTURES #
599 ############
600
601 # The list of directories to search for fixtures
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
602 FIXTURE_DIRS = []
cfc19f8 @jezdez Fixed #12323 and #11582 -- Extended the ability to handle static file…
jezdez authored
603
604 ###############
605 # STATICFILES #
606 ###############
607
608 # A list of locations of additional static files
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
609 STATICFILES_DIRS = []
cfc19f8 @jezdez Fixed #12323 and #11582 -- Extended the ability to handle static file…
jezdez authored
610
611 # The default file storage backend used during the build process
612 STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
613
614 # List of finder classes that know how to find static files in
615 # various locations.
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
616 STATICFILES_FINDERS = [
cfc19f8 @jezdez Fixed #12323 and #11582 -- Extended the ability to handle static file…
jezdez authored
617 'django.contrib.staticfiles.finders.FileSystemFinder',
618 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
dfb4cb9 @alasdairnicol Fixed #21285 -- Fixed E121,E122 pep8 warnings
alasdairnicol authored
619 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
9ec8aa5 @darkryder Fixed #24149 -- Normalized tuple settings to lists.
darkryder authored
620 ]
2ae8a8a @andrewgodwin Fix test running with new apps stuff/migrate actually running migrations
andrewgodwin authored
621
622 ##############
623 # MIGRATIONS #
624 ##############
625
626 # Migration module overrides for apps, by app label.
627 MIGRATION_MODULES = {}
d818e0c @freakboy3742 Fixed #16905 -- Added extensible checks (nee validation) framework
freakboy3742 authored
628
629 #################
630 # SYSTEM CHECKS #
631 #################
632
633 # List of all issues generated by system checks that should be silenced. Light
634 # issues like warnings, infos or debugs will not generate a message. Silencing
635 # serious issues like errors and criticals does not result in hiding the
636 # message, but Django will not stop you from e.g. running server.
637 SILENCED_SYSTEM_CHECKS = []
52ef6a4 @timgraham Fixed #17101 -- Integrated django-secure and added check --deploy option
timgraham authored
638
639 #######################
640 # SECURITY MIDDLEWARE #
641 #######################
642 SECURE_BROWSER_XSS_FILTER = False
643 SECURE_CONTENT_TYPE_NOSNIFF = False
644 SECURE_HSTS_INCLUDE_SUBDOMAINS = False
645 SECURE_HSTS_SECONDS = 0
646 SECURE_REDIRECT_EXEMPT = []
647 SECURE_SSL_HOST = None
648 SECURE_SSL_REDIRECT = False
Something went wrong with that request. Please try again.