Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 580 lines (470 sloc) 20.7 kb
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
1 # Default Django settings. Override these with settings in the module
2 # pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
3
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian 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
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
7
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
8 ####################
9 # CORE #
10 ####################
11
12 DEBUG = False
a103c7f Fixed #603 -- Added template debugging errors to pretty error-page ou…
adrian authored
13 TEMPLATE_DEBUG = False
ed4a513 Negligible comment typo fixes
adrian authored
14
15 # Whether the framework should propagate raw exceptions rather than catching
16 # them. This is useful under some testing siutations and should never be used
17 # on a live site.
30c2c8b Added DEBUG_PROPAGATE_EXCEPTIONS setting that helps testing under e.g…
lukeplant authored
18 DEBUG_PROPAGATE_EXCEPTIONS = False
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
19
20 # Whether to use the "Etag" header. This saves bandwidth but slows down performance.
21 USE_ETAGS = False
22
4672761 Removed hard-coded Adrian and Jacob in global_settings.ADMINS
adrian authored
23 # People who get code error notifications.
24 # In the format (('Full Name', 'email@domain.com'), ('Full Name', 'anotheremail@domain.com'))
25 ADMINS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
26
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
27 # Tuple of IP addresses, as strings, that:
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
28 # * See debug comments, when DEBUG is true
29 # * Receive x-headers
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
30 INTERNAL_IPS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
31
32 # Local time zone for this installation. All choices can be found here:
627beab Changed the URL reference for timezone specifications. It looks like …
mtredinnick authored
33 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
34 # systems may support all possibilities).
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
35 TIME_ZONE = 'America/Chicago'
36
37 # Language code for this installation. All choices can be found here:
205e4e5 Changed the location of language codes to match the project settings …
mtredinnick authored
38 # http://www.i18nguy.com/unicode/language-identifiers.html
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
39 LANGUAGE_CODE = 'en-us'
40
73d147e Renamed 'Traditional Chinese' to 'Simplified Chinese' and updated po …
adrian authored
41 # Languages we provide translations for, out of the box. The language name
42 # should be the utf-8 encoded local name for the language.
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
43 LANGUAGES = (
d6fe064 fixed #2302: added arabic translation. thx Ahmad Alhashemi.
hugo authored
44 ('ar', gettext_noop('Arabic')),
63ac605 Fixed #4283 -- Added Bulgarian translation. Thanks Jordan Dimov.
mtredinnick authored
45 ('bg', gettext_noop('Bulgarian')),
54a26ac Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
russellm authored
46 ('bn', gettext_noop('Bengali')),
0ed58a1 Fixed Bosnian language code introduced in r12322.
jezdez authored
47 ('bs', gettext_noop('Bosnian')),
5765efb Fixed #3329 -- Added Catalan (ca) translation. Thanks Marc Fargas.
mtredinnick authored
48 ('ca', gettext_noop('Catalan')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
49 ('cs', gettext_noop('Czech')),
50 ('cy', gettext_noop('Welsh')),
51 ('da', gettext_noop('Danish')),
52 ('de', gettext_noop('German')),
53 ('el', gettext_noop('Greek')),
54 ('en', gettext_noop('English')),
57facf3 Added British English translation. Refs #11637.
jezdez authored
55 ('en-gb', gettext_noop('British English')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
56 ('es', gettext_noop('Spanish')),
ca7af3a Fixed #14064 -- Corrected spelling of Argentinian. There are argument…
russellm authored
57 ('es-ar', gettext_noop('Argentinian Spanish')),
54a26ac Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
russellm authored
58 ('et', gettext_noop('Estonian')),
c961db9 Fixed #6607 -- Added a new Basque (eu) translation. Thanks ibonso@gma…
mtredinnick authored
59 ('eu', gettext_noop('Basque')),
6de08a9 Fixed #4624 -- Added new Persian (fa) translation. Thanks, Reza Moham…
mtredinnick authored
60 ('fa', gettext_noop('Persian')),
4f4db85 fixed #2617: added finnish translation
hugo authored
61 ('fi', gettext_noop('Finnish')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
62 ('fr', gettext_noop('French')),
c1f2984 Fixed some problems with the Frisian translation added in r12324.
russellm authored
63 ('fy-nl', gettext_noop('Frisian')),
21e5e22 Changed the name of the "ga" locale to "Irish" in the settings file.
mtredinnick authored
64 ('ga', gettext_noop('Irish')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
65 ('gl', gettext_noop('Galician')),
66 ('he', gettext_noop('Hebrew')),
0dbb825 Fixed #9574 -- Hindi translation from Thejaswi Puthraya.
mtredinnick authored
67 ('hi', gettext_noop('Hindi')),
409f69b Fixed #5141 -- Added Croation translation. Thanks, Aljosa Mohorovic.
mtredinnick authored
68 ('hr', gettext_noop('Croatian')),
54a26ac Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
russellm authored
69 ('hu', gettext_noop('Hungarian')),
d7d86ba Fixed #13496 - Added Indonesian translation (id). Thanks, Selwin Ong.
jezdez authored
70 ('id', gettext_noop('Indonesian')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
71 ('is', gettext_noop('Icelandic')),
72 ('it', gettext_noop('Italian')),
73 ('ja', gettext_noop('Japanese')),
a0dcf41 Fixed #6617 -- Added new Georgian (ka) translation from David Avsajan…
mtredinnick authored
74 ('ka', gettext_noop('Georgian')),
096cc28 Fixed #5279 -- Added Khmer translation. Thanks, Sengtha Chay!
mtredinnick authored
75 ('km', gettext_noop('Khmer')),
7b250ed Fixed #3251 -- Added Kannada (kn) translations. Thanks to the volunte…
mtredinnick authored
76 ('kn', gettext_noop('Kannada')),
54a26ac Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
russellm authored
77 ('ko', gettext_noop('Korean')),
f5f5f93 Fixed #7458: added Lithuanian to LANGUAGES.
jacob authored
78 ('lt', gettext_noop('Lithuanian')),
54a26ac Fixed #12357 -- Added a start of a Bosian translation. Thanks to Tim …
russellm authored
79 ('lv', gettext_noop('Latvian')),
7c3f4fc Fixed #3093 -- Added Macedonian translation from Georgi Stanojevski
mtredinnick authored
80 ('mk', gettext_noop('Macedonian')),
8a0c6e3 Fixed #13651 -- Added Malayalam (ml) translation. Thanks to rajeesh.
russellm authored
81 ('ml', gettext_noop('Malayalam')),
de8b56e Fixed #13094 -- Added Mongolian translation. Thanks to Urangua.
russellm authored
82 ('mn', gettext_noop('Mongolian')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
83 ('nl', gettext_noop('Dutch')),
84 ('no', gettext_noop('Norwegian')),
95559e0 Fixed #11068 - Introduced new language code "nb" for Norwegian Bokmål…
jezdez authored
85 ('nb', gettext_noop('Norwegian Bokmal')),
d3eab58 Fixed #13096 - Added Norwegian Nynorsk translation. Thanks, Håvard Gr…
jezdez authored
86 ('nn', gettext_noop('Norwegian Nynorsk')),
57b534f Fixed #14479 -- Added initial Punjabi (pa) translation. Thanks, A S A…
jezdez authored
87 ('pa', gettext_noop('Punjabi')),
6ff3239 fixed #2911: added polish to the default languages
hugo authored
88 ('pl', gettext_noop('Polish')),
a0f8bae Fixed #9410 -- I did not spell Portuguese correctly 18 months ago. Fi…
mtredinnick authored
89 ('pt', gettext_noop('Portuguese')),
515ed26 Fixed #6910 -- Updated Brazilian Portugese translation from Guilherme…
mtredinnick authored
90 ('pt-br', gettext_noop('Brazilian Portuguese')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
91 ('ro', gettext_noop('Romanian')),
92 ('ru', gettext_noop('Russian')),
93 ('sk', gettext_noop('Slovak')),
94 ('sl', gettext_noop('Slovenian')),
cc8327e Fixed #12719 -- Added initial Albanian translation. Thanks to Besnik …
russellm authored
95 ('sq', gettext_noop('Albanian')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
96 ('sr', gettext_noop('Serbian')),
4944138 Fixed #12220 - Added Serbian Latin to list of languages in global set…
jezdez authored
97 ('sr-latn', gettext_noop('Serbian Latin')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
98 ('sv', gettext_noop('Swedish')),
455a303 fixed #2371: added tamil translation
hugo authored
99 ('ta', gettext_noop('Tamil')),
963bce3 Fixed #3673 -- Added new Telugu (te) localisation. Thanks, pavithran s.
mtredinnick authored
100 ('te', gettext_noop('Telugu')),
07c9d54 Added a couple of missed pieces from r9376. Refs #9542.
mtredinnick authored
101 ('th', gettext_noop('Thai')),
a13746b fixed #2623: added new turkish translation
hugo authored
102 ('tr', gettext_noop('Turkish')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
103 ('uk', gettext_noop('Ukrainian')),
22003bb Fixed #11463 - Added Vietnamese translation. Thanks Erik Unger, clous…
jezdez authored
104 ('vi', gettext_noop('Vietnamese')),
5eb4952 Made django/utils/translation.py into a package django/utils/translat…
adrian authored
105 ('zh-cn', gettext_noop('Simplified Chinese')),
106 ('zh-tw', gettext_noop('Traditional Chinese')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
107 )
108
27f0fd8 fixed #1660: added support functions and tags for bidi language support
hugo authored
109 # Languages using BiDi (right-to-left) layout
7daeefd Fixed #4624 -- Added Persian ('fa') to the list of right-to-left lang…
mtredinnick authored
110 LANGUAGES_BIDI = ("he", "ar", "fa")
27f0fd8 fixed #1660: added support functions and tags for bidi language support
hugo authored
111
37535cb Added USE_I18N setting, which lets you turn off internationalization …
adrian authored
112 # If you set this to False, Django will make some optimizations so as not
113 # to load the internationalization machinery.
114 USE_I18N = True
40c902d Fixed #5978 -- Gave `LOCALE_PATHS` a default setting of an empty tupl…
gwilson authored
115 LOCALE_PATHS = ()
6f633a5 Fixed #5603 -- Allow customization of the language cookie name. Thank…
mtredinnick authored
116 LANGUAGE_COOKIE_NAME = 'django_language'
40c902d Fixed #5978 -- Gave `LOCALE_PATHS` a default setting of an empty tupl…
gwilson authored
117
bca603c Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
118 # If you set this to True, Django will format dates, numbers and calendars
119 # according to user current locale
120 USE_L10N = False
121
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
122 # Not-necessarily-technical managers of the site. They get broken link
123 # notifications and other various e-mails.
124 MANAGERS = ADMINS
125
84b95fc Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_C…
adrian authored
126 # Default content type and charset to use for all HttpResponse objects, if a
127 # MIME type isn't manually specified. These are used to construct the
128 # Content-Type header.
129 DEFAULT_CONTENT_TYPE = 'text/html'
130 DEFAULT_CHARSET = 'utf-8'
9945b69 Fixed #333 -- Added DEFAULT_MIME_TYPE setting, and set it to 'text/ht…
adrian authored
131
72d2b60 Merged Unicode branch into trunk (r4952:5608). This should be fully
mtredinnick authored
132 # Encoding of files read from disk (template and initial SQL files).
133 FILE_CHARSET = 'utf-8'
134
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
135 # E-mail address that error messages come from.
136 SERVER_EMAIL = 'root@localhost'
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
137
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
138 # Whether to send broken-link e-mails.
51a9555 Changed SEND_BROKEN_LINK_EMAILS from True to False in global_settings…
adrian authored
139 SEND_BROKEN_LINK_EMAILS = False
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
140
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
141 # Database connection info.
b733d80 Fixed #12540, #12541 -- Added database routers, allowing for configur…
russellm authored
142 # Legacy format
a1c0d6a Removed the ado_mssql database backend.
mtredinnick authored
143 DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
fead36d Fixed #225 -- Added first stab at MS SQL Server support (via ADO). Th…
adrian authored
144 DATABASE_NAME = '' # Or path to database file if using sqlite3.
145 DATABASE_USER = '' # Not used with sqlite3.
146 DATABASE_PASSWORD = '' # Not used with sqlite3.
147 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
148 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
c9b9bea Formatting fixes from the past round of checkins
adrian authored
149 DATABASE_OPTIONS = {} # Set to empty dictionary for default.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
150
b733d80 Fixed #12540, #12541 -- Added database routers, allowing for configur…
russellm authored
151 # New format
836d297 Fixed #1142 -- Added multiple database support.
russellm authored
152 DATABASES = {
153 }
154
b733d80 Fixed #12540, #12541 -- Added database routers, allowing for configur…
russellm authored
155 # Classes used to implement db routing behaviour
156 DATABASE_ROUTERS = []
157
535094d Fixed #10355 -- Added an API for pluggable e-mail backends.
russellm authored
158 # The email backend to use. For possible shortcuts see django.core.mail.
159 # The default is to use the SMTP backend.
160 # Third-party backends can be specified by providing a Python path
161 # to a module that defines an EmailBackend class.
429c6e2 Modified the way EMAIL_BACKEND is specified to make it consistent wit…
russellm authored
162 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
535094d Fixed #10355 -- Added an API for pluggable e-mail backends.
russellm authored
163
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
164 # Host for sending e-mail.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
165 EMAIL_HOST = 'localhost'
166
6ccd836 Fixed #1555 -- Added EMAIL_PORT setting. Thanks, bde3
adrian authored
167 # Port for sending e-mail.
168 EMAIL_PORT = 25
169
01c2484 Fixed #1529 -- Added support for authenticated SMTP to django.core.ma…
adrian authored
170 # Optional SMTP authentication information for EMAIL_HOST.
171 EMAIL_HOST_USER = ''
172 EMAIL_HOST_PASSWORD = ''
4365e9c Fixed #2897 -- Added support for TLS connections to email handling. T…
mtredinnick authored
173 EMAIL_USE_TLS = False
01c2484 Fixed #1529 -- Added support for authenticated SMTP to django.core.ma…
adrian authored
174
314ff5b Added INSTALLED_APPS to global_settings. It's an empty tuple by default.
adrian authored
175 # List of strings representing installed apps.
176 INSTALLED_APPS = ()
177
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
178 # List of locations of the template source files, in search order.
179 TEMPLATE_DIRS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
180
08fc1a9 Fixed #582 -- Added support for loading templates from Python eggs, a…
adrian authored
181 # List of callables that know how to import templates from various sources.
182 # See the comments in django/core/template/loader.py for interface
183 # documentation.
184 TEMPLATE_LOADERS = (
6d807cc Fixed #6262 -- Added a cached template loader, and modified existing …
russellm authored
185 'django.template.loaders.filesystem.Loader',
186 'django.template.loaders.app_directories.Loader',
187 # 'django.template.loaders.eggs.Loader',
08fc1a9 Fixed #582 -- Added support for loading templates from Python eggs, a…
adrian authored
188 )
189
0b99a86 MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards…
adrian authored
190 # List of processors used by RequestContext to populate the context.
d096ac0 Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you speci…
adrian authored
191 # Each one should be a callable that takes the request object as its
192 # only parameter and returns a dictionary to add to the context.
193 TEMPLATE_CONTEXT_PROCESSORS = (
1538a2d Fixed #12066 - Moved auth context processor from core to the auth app…
jezdez authored
194 'django.contrib.auth.context_processors.auth',
d096ac0 Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you speci…
adrian authored
195 'django.core.context_processors.debug',
196 'django.core.context_processors.i18n',
479a513 Fixed #12323 and #11582 -- Extended the ability to handle static file…
jezdez authored
197 'django.contrib.staticfiles.context_processors.staticfiles',
0752940 Fixed #1271 -- Added a 'request' template context processor, which is…
adrian authored
198 # 'django.core.context_processors.request',
3799634 Fixed #4604 - Configurable message passing system, supporting anonymo…
lukeplant authored
199 'django.contrib.messages.context_processors.messages',
d096ac0 Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you speci…
adrian authored
200 )
201
c2b1a4b Added TEMPLATE_STRING_IF_INVALID setting, which specifies what the te…
adrian authored
202 # Output to use in template system for invalid (e.g. misspelled) variables.
203 TEMPLATE_STRING_IF_INVALID = ''
204
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
205 # Default e-mail address to use for various automated correspondence from
206 # the site managers.
207 DEFAULT_FROM_EMAIL = 'webmaster@localhost'
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
208
d8b1950 Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]…
jacob authored
209 # Subject-line prefix for email messages send with django.core.mail.mail_admins
210 # or ...mail_managers. Make sure to include the trailing space.
211 EMAIL_SUBJECT_PREFIX = '[Django] '
212
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
213 # Whether to append trailing slashes to URLs.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
214 APPEND_SLASH = True
215
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
216 # Whether to prepend the "www." subdomain to URLs that don't have it.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
217 PREPEND_WWW = False
218
f2bb571 Changed/fixed the way Django handles SCRIPT_NAME and PATH_INFO (or
mtredinnick authored
219 # Override the server-derived value of SCRIPT_NAME
220 FORCE_SCRIPT_NAME = None
221
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
222 # List of compiled regular expression objects representing User-Agent strings
223 # that are not allowed to visit any page, systemwide. Use this for bad
224 # robots/crawlers. Here are a few examples:
225 # import re
226 # DISALLOWED_USER_AGENTS = (
227 # re.compile(r'^NaverBot.*'),
228 # re.compile(r'^EmailSiphon.*'),
229 # re.compile(r'^SiteSucker.*'),
230 # re.compile(r'^sohu-search')
231 # )
232 DISALLOWED_USER_AGENTS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
233
234 ABSOLUTE_URL_OVERRIDES = {}
235
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
236 # Tuple of strings representing allowed prefixes for the {% ssi %} tag.
237 # Example: ('/home/html', '/var/www')
238 ALLOWED_INCLUDE_ROOTS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
239
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
240 # If this is a admin settings module, this should be a list of
241 # settings modules (in the format 'foo.bar.baz') for which this admin
242 # is an admin.
fb044f9 Changed global_settings.ADMIN_FOR from [] to ()
adrian authored
243 ADMIN_FOR = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
244
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
245 # 404s that may be ignored.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
246 IGNORABLE_404_STARTS = ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
247 IGNORABLE_404_ENDS = ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
248
de9a2d6 Fixed #95 -- Added SECRET_KEY setting instead of hard-coding keys tha…
adrian authored
249 # A secret key for this particular Django installation. Used in secret-key
250 # hashing algorithms. Set this in your settings, or Django will complain
251 # loudly.
252 SECRET_KEY = ''
253
1f7c13c File storage refactoring, adding far more flexibility to Django's fil…
jacob authored
254 # Default file storage mechanism that holds media.
255 DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
256
91f9c9b Reordered MEDIA_ROOT and MEDIA_URL in global_settings so they're not …
adrian authored
257 # Absolute path to the directory that holds media.
258 # Example: "/home/media/media.lawrence.com/"
259 MEDIA_ROOT = ''
260
261 # URL that handles the media served from MEDIA_ROOT.
262 # Example: "http://media.lawrence.com"
263 MEDIA_URL = ''
264
394318c Fixed #2070: refactored Django's file upload capabilities.
jacob authored
265 # List of upload handler classes to be applied in order.
266 FILE_UPLOAD_HANDLERS = (
267 'django.core.files.uploadhandler.MemoryFileUploadHandler',
268 'django.core.files.uploadhandler.TemporaryFileUploadHandler',
269 )
270
271 # Maximum size, in bytes, of a request before it will be streamed to the
272 # file system instead of into memory.
273 FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
274
275 # Directory in which upload streamed files will be temporarily saved. A value of
276 # `None` will make Django use the operating system's default temporary directory
277 # (i.e. "/tmp" on *nix systems).
278 FILE_UPLOAD_TEMP_DIR = None
279
a29e93f Fixed #8454: added a FILE_UPLOAD_PERMISSIONS setting to control the p…
jacob authored
280 # The numeric mode to set newly-uploaded files to. The value should be a mode
281 # you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html.
282 FILE_UPLOAD_PERMISSIONS = None
283
bca603c Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
284 # Python module path where user will place custom format definition.
285 # The directory where this setting is pointing should contain subdirectories
286 # named as the locales, containing a formats.py file
287 # (i.e. "myproject.locale" for myproject/locale/en/formats.py etc. use)
288 FORMAT_MODULE_PATH = None
289
e2ca5d1 Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrian authored
290 # Default formatting for date objects. See all available format strings here:
2a281f7 Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
291 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
e2ca5d1 Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrian authored
292 DATE_FORMAT = 'N j, Y'
293
294 # Default formatting for datetime objects. See all available format strings here:
2a281f7 Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
295 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
e2ca5d1 Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrian authored
296 DATETIME_FORMAT = 'N j, Y, P'
297
298 # Default formatting for time objects. See all available format strings here:
2a281f7 Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
299 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
e2ca5d1 Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrian authored
300 TIME_FORMAT = 'P'
301
ca45f2e Fixed #2062 -- Added YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT settings,…
adrian authored
302 # Default formatting for date objects when only the year and month are relevant.
303 # See all available format strings here:
2a281f7 Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
304 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
ca45f2e Fixed #2062 -- Added YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT settings,…
adrian authored
305 YEAR_MONTH_FORMAT = 'F Y'
306
307 # Default formatting for date objects when only the month and day are relevant.
308 # See all available format strings here:
2a281f7 Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
309 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
ca45f2e Fixed #2062 -- Added YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT settings,…
adrian authored
310 MONTH_DAY_FORMAT = 'F j'
311
fc7e72c Fixed #10260 - Refactored internationalization documentation. Thanks,…
jezdez authored
312 # Default short formatting for date objects. See all available format strings here:
2a281f7 Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
313 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
bca603c Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
314 SHORT_DATE_FORMAT = 'm/d/Y'
315
316 # Default short formatting for datetime objects.
317 # See all available format strings here:
2a281f7 Fixed links to the date formats choices in the global settings. Thank…
jezdez authored
318 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
bca603c Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
319 SHORT_DATETIME_FORMAT = 'm/d/Y P'
320
321 # Default formats to be used when parsing dates from input boxes, in order
322 # See all available format string here:
323 # http://docs.python.org/library/datetime.html#strftime-behavior
324 # * Note that these format strings are different from the ones to display dates
325 DATE_INPUT_FORMATS = (
326 '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
327 '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
328 '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
329 '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
330 '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
331 )
332
333 # Default formats to be used when parsing times from input boxes, in order
334 # See all available format string here:
335 # http://docs.python.org/library/datetime.html#strftime-behavior
336 # * Note that these format strings are different from the ones to display dates
337 TIME_INPUT_FORMATS = (
338 '%H:%M:%S', # '14:30:59'
339 '%H:%M', # '14:30'
340 )
341
342 # Default formats to be used when parsing dates and times from input boxes,
343 # in order
344 # See all available format string here:
345 # http://docs.python.org/library/datetime.html#strftime-behavior
346 # * Note that these format strings are different from the ones to display dates
347 DATETIME_INPUT_FORMATS = (
348 '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
349 '%Y-%m-%d %H:%M', # '2006-10-25 14:30'
350 '%Y-%m-%d', # '2006-10-25'
351 '%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59'
352 '%m/%d/%Y %H:%M', # '10/25/2006 14:30'
353 '%m/%d/%Y', # '10/25/2006'
354 '%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59'
355 '%m/%d/%y %H:%M', # '10/25/06 14:30'
356 '%m/%d/%y', # '10/25/06'
357 )
358
359 # First day of week, to be used on calendars
360 # 0 means Sunday, 1 means Monday...
361 FIRST_DAY_OF_WEEK = 0
362
363 # Decimal separator symbol
364 DECIMAL_SEPARATOR = '.'
365
366 # Boolean that sets whether to add thousand separator when formatting numbers
367 USE_THOUSAND_SEPARATOR = False
368
bb59663 Fixed #13702 -- Made sure to actually fall back to the l10n format st…
jezdez authored
369 # Number of digits that will be together, when spliting them by
370 # THOUSAND_SEPARATOR. 0 means no grouping, 3 means splitting by thousands...
bca603c Fixed #7980 - Improved i18n framework to support locale aware formatt…
jezdez authored
371 NUMBER_GROUPING = 0
372
373 # Thousand separator symbol
374 THOUSAND_SEPARATOR = ','
375
0b99a86 MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards…
adrian authored
376 # Do you want to manage transactions manually?
377 # Hint: you really don't!
378 TRANSACTIONS_MANAGED = False
379
b0c8c1d Fixed #2934: greatly improved the accuracy if the isExistingURL check…
jacob authored
380 # The User-Agent string to use when checking for URL validity through the
381 # isExistingURL validator.
b9f76bd Fixed #4517 -- Made sure that URL_VALIDATOR_USER_AGENT includes the u…
mtredinnick authored
382 from django import get_version
383 URL_VALIDATOR_USER_AGENT = "Django/%s (http://www.djangoproject.com)" % get_version()
b0c8c1d Fixed #2934: greatly improved the accuracy if the isExistingURL check…
jacob authored
384
db9f3e5 Fixed #6007: Added DEFAULT_TABLESPACE and DEFAULT_INDEX_TABLESPACE
ikelly authored
385 # The tablespaces to use for each model when not specified otherwise.
386 DEFAULT_TABLESPACE = ''
387 DEFAULT_INDEX_TABLESPACE = ''
388
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
389 ##############
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
390 # MIDDLEWARE #
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
391 ##############
392
393 # List of middleware classes to use. Order is important; in the request phase,
394 # this middleware classes will be applied in the order given, and in the
395 # response phase the middleware will be applied in reverse order.
396 MIDDLEWARE_CLASSES = (
e876d27 Made default MIDDLEWARE_CLASSES same as in project_template.
lukeplant authored
397 'django.middleware.common.CommonMiddleware',
67fb3b9 Fixed #1998 -- Changed double quotes to single quotes
adrian authored
398 'django.contrib.sessions.middleware.SessionMiddleware',
7ea4fa4 Moved contrib.csrf.* to core code.
lukeplant authored
399 'django.middleware.csrf.CsrfViewMiddleware',
67fb3b9 Fixed #1998 -- Changed double quotes to single quotes
adrian authored
400 'django.contrib.auth.middleware.AuthenticationMiddleware',
3799634 Fixed #4604 - Configurable message passing system, supporting anonymo…
lukeplant authored
401 'django.contrib.messages.middleware.MessageMiddleware',
67fb3b9 Fixed #1998 -- Changed double quotes to single quotes
adrian authored
402 # 'django.middleware.http.ConditionalGetMiddleware',
479f5aa Reverted 10094 and 10095 (in favour of solution that will hopefully l…
lukeplant authored
403 # 'django.middleware.gzip.GZipMiddleware',
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
404 )
405
98e672f Fixed #1 -- Added anonymous session support via middleware and reques…
adrian authored
406 ############
407 # SESSIONS #
408 ############
409
d619e5b Fixed #2066: session data can now be stored in the cache or on the fi…
jacob authored
410 SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want.
411 SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks).
412 SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie.
413 SESSION_COOKIE_SECURE = False # Whether the session cookie should be secure (https:// only).
7cd03a3 Fixed #4724 -- Added support for configurable session cookie paths. H…
mtredinnick authored
414 SESSION_COOKIE_PATH = '/' # The path of the session cookie.
d619e5b Fixed #2066: session data can now be stored in the cache or on the fi…
jacob authored
415 SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request.
ed4a513 Negligible comment typo fixes
adrian authored
416 SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether a user's session cookie expires when the Web browser is closed.
d619e5b Fixed #2066: session data can now be stored in the cache or on the fi…
jacob authored
417 SESSION_ENGINE = 'django.contrib.sessions.backends.db' # The module to store session data
a1d1c71 Edited some docs changes from the past few days
adrian authored
418 SESSION_FILE_PATH = None # Directory to store session files if using the file session module. If None, the backend will use a sensible default.
98e672f Fixed #1 -- Added anonymous session support via middleware and reques…
adrian authored
419
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
420 #########
421 # CACHE #
422 #########
423
424 # The cache backend to use. See the docstring in django.core.cache for the
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
425 # possible values.
429605b Fixed #6086 -- Deprecate the "simple" cache backend in favour of "loc…
mtredinnick authored
426 CACHE_BACKEND = 'locmem://'
c4264f6 Added CACHE_MIDDLEWARE_KEY_PREFIX to global_settings
adrian authored
427 CACHE_MIDDLEWARE_KEY_PREFIX = ''
db528c0 Added CACHE_MIDDLEWARE_SECONDS to global settings and documentation (…
mtredinnick authored
428 CACHE_MIDDLEWARE_SECONDS = 600
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
429
430 ####################
431 # COMMENTS #
432 ####################
433
434 COMMENTS_ALLOW_PROFANITIES = False
435
36e17a9 Fixed #2678 -- Moved the list of profanities for the hasNoProfanities…
mtredinnick authored
436 # The profanities that will trigger a validation error in the
9d10527 Small improvements to profanities-to-settings move from [3784]
adrian authored
437 # 'hasNoProfanities' validator. All of these should be in lowercase.
67c8bca Set default PROFANITIES_LIST setting to an empty tuple. This is techn…
adrian authored
438 PROFANITIES_LIST = ()
36e17a9 Fixed #2678 -- Moved the list of profanities for the hasNoProfanities…
mtredinnick authored
439
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
440 # The group ID that designates which users are banned.
441 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
442 COMMENTS_BANNED_USERS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
443
444 # The group ID that designates which users can moderate comments.
445 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
446 COMMENTS_MODERATORS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
447
448 # The group ID that designates the users whose comments should be e-mailed to MANAGERS.
449 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
450 COMMENTS_SKETCHY_USERS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
451
452 # The system will e-mail MANAGERS the first COMMENTS_FIRST_FEW comments by each
453 # user. Set this to 0 if you want to disable it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
454 COMMENTS_FIRST_FEW = 0
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
455
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
456 # A tuple of IP addresses that have been banned from participating in various
457 # Django-powered features.
458 BANNED_IPS = ()
9fed82a Merged multi-auth branch to trunk. See the authentication docs for t…
jacob authored
459
460 ##################
461 # AUTHENTICATION #
462 ##################
463
464 AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
3d2e715 Refs #2333 - Added 'test' target to django-admin script. Includes add…
russellm authored
465
3dcbc52 Fixed #3185 -- Made values for login, logout and post-login redirect …
mtredinnick authored
466 LOGIN_URL = '/accounts/login/'
467
468 LOGOUT_URL = '/accounts/logout/'
469
470 LOGIN_REDIRECT_URL = '/accounts/profile/'
471
8fa9197 Fixed #7723 - implemented a secure password reset form that uses a to…
lukeplant authored
472 # The number of days a password reset link is valid for
473 PASSWORD_RESET_TIMEOUT_DAYS = 3
474
7882bfe Fixed #9977 - CsrfMiddleware gets template tag added, session depende…
lukeplant authored
475 ########
476 # CSRF #
477 ########
478
479 # Dotted path to callable to be used as view when a request is
480 # rejected by the CSRF middleware.
7ea4fa4 Moved contrib.csrf.* to core code.
lukeplant authored
481 CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
7882bfe Fixed #9977 - CsrfMiddleware gets template tag added, session depende…
lukeplant authored
482
483 # Name and domain for CSRF cookie.
484 CSRF_COOKIE_NAME = 'csrftoken'
485 CSRF_COOKIE_DOMAIN = None
486
3799634 Fixed #4604 - Configurable message passing system, supporting anonymo…
lukeplant authored
487 ############
488 # MESSAGES #
489 ############
490
491 # Class to use as messges backend
492 MESSAGE_STORAGE = 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
493
494 # Default values of MESSAGE_LEVEL and MESSAGE_TAGS are defined within
495 # django.contrib.messages to avoid imports in this settings file.
496
3d2e715 Refs #2333 - Added 'test' target to django-admin script. Includes add…
russellm authored
497 ###########
ac898d7 Fixed #12012 -- Added support for logging. Thanks to Vinay Sajip for …
russellm authored
498 # LOGGING #
499 ###########
500
501 # The callable to use to configure logging
502 LOGGING_CONFIG = 'django.utils.log.dictConfig'
503
504 # The default logging configuration. This sends an email to
505 # the site admins on every HTTP 500 error. All other log
506 # records are sent to the bit bucket.
507 LOGGING = {
508 'version': 1,
509 'disable_existing_loggers': False,
510 'handlers': {
511 'mail_admins': {
512 'level': 'ERROR',
513 'class': 'django.utils.log.AdminEmailHandler'
514 }
515 },
516 'loggers': {
517 'django.request':{
518 'handlers': ['mail_admins'],
519 'level': 'ERROR',
520 'propagate': True,
521 },
522 }
523 }
524
525 ###########
3d2e715 Refs #2333 - Added 'test' target to django-admin script. Includes add…
russellm authored
526 # TESTING #
527 ###########
528
2a31f2d Fixed #12624 -- Modified test runners to be class based.
russellm authored
529 # The name of the class to use to run the test suite
530 TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
b1cb60d Refs #2333 - Added a TEST_DATABASE_NAME setting that can be used to o…
russellm authored
531
532 # The name of the database to use for testing purposes.
533 # If None, a name of 'test_' + DATABASE_NAME will be assumed
534 TEST_DATABASE_NAME = None
8ca40bd Fixes #2333 -- Added test fixtures framework.
russellm authored
535
935ac2a Added new TEST_DATABASE_CHARSET and TEST_DATABASE_COLLATION settings …
mtredinnick authored
536 # Strings used to set the character set and collation order for the test
537 # database. These values are passed literally to the server, so they are
538 # backend-dependent. If None, no special settings are sent (system defaults are
539 # used).
540 TEST_DATABASE_CHARSET = None
541 TEST_DATABASE_COLLATION = None
542
8ca40bd Fixes #2333 -- Added test fixtures framework.
russellm authored
543 ############
544 # FIXTURES #
545 ############
546
547 # The list of directories to search for fixtures
548 FIXTURE_DIRS = ()
479a513 Fixed #12323 and #11582 -- Extended the ability to handle static file…
jezdez authored
549
550 ###############
551 # STATICFILES #
552 ###############
553
554 # Absolute path to the directory that holds media.
555 # Example: "/home/media/media.lawrence.com/static/"
556 STATICFILES_ROOT = ''
557
558 # URL that handles the static files served from STATICFILES_ROOT.
559 # Example: "http://media.lawrence.com/static/"
560 STATICFILES_URL = '/static/'
561
562 # A list of locations of additional static files
563 STATICFILES_DIRS = ()
564
565 # The default file storage backend used during the build process
566 STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
567
568 # List of finder classes that know how to find static files in
569 # various locations.
570 STATICFILES_FINDERS = (
571 'django.contrib.staticfiles.finders.FileSystemFinder',
572 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
573 # 'django.contrib.staticfiles.finders.DefaultStorageFinder',
574 )
575
576 # URL prefix for admin media -- CSS, JavaScript and images.
577 # Make sure to use a trailing slash.
578 # Examples: "http://foo.com/static/admin/", "/static/admin/".
579 ADMIN_MEDIA_PREFIX = '/static/admin/'
Something went wrong with that request. Please try again.