Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 296 lines (235 sloc) 10.408 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/translation...
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. N...
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 outpu...
adrian authored
13 TEMPLATE_DEBUG = False
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
14
15 # Whether to use the "Etag" header. This saves bandwidth but slows down performance.
16 USE_ETAGS = False
17
4672761 Removed hard-coded Adrian and Jacob in global_settings.ADMINS
adrian authored
18 # People who get code error notifications.
19 # In the format (('Full Name', 'email@domain.com'), ('Full Name', 'anotheremail@domain.com'))
20 ADMINS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
21
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
22 # Tuple of IP addresses, as strings, that:
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
23 # * See debug comments, when DEBUG is true
24 # * Receive x-headers
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
25 INTERNAL_IPS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
26
27 # Local time zone for this installation. All choices can be found here:
28 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
29 TIME_ZONE = 'America/Chicago'
30
31 # Language code for this installation. All choices can be found here:
32 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
33 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
34 LANGUAGE_CODE = 'en-us'
35
73d147e Renamed 'Traditional Chinese' to 'Simplified Chinese' and updated po fil...
adrian authored
36 # Languages we provide translations for, out of the box. The language name
37 # should be the utf-8 encoded local name for the language.
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others. N...
jacob authored
38 LANGUAGES = (
5eb4952 Made django/utils/translation.py into a package django/utils/translation...
adrian authored
39 ('bn', gettext_noop('Bengali')),
40 ('cs', gettext_noop('Czech')),
41 ('cy', gettext_noop('Welsh')),
42 ('da', gettext_noop('Danish')),
43 ('de', gettext_noop('German')),
44 ('el', gettext_noop('Greek')),
45 ('en', gettext_noop('English')),
46 ('es', gettext_noop('Spanish')),
47 ('es_AR', gettext_noop('Argentinean Spanish')),
48 ('fr', gettext_noop('French')),
49 ('gl', gettext_noop('Galician')),
50 ('hu', gettext_noop('Hungarian')),
51 ('he', gettext_noop('Hebrew')),
52 ('is', gettext_noop('Icelandic')),
53 ('it', gettext_noop('Italian')),
54 ('ja', gettext_noop('Japanese')),
55 ('nl', gettext_noop('Dutch')),
56 ('no', gettext_noop('Norwegian')),
57 ('pt-br', gettext_noop('Brazilian')),
58 ('ro', gettext_noop('Romanian')),
59 ('ru', gettext_noop('Russian')),
60 ('sk', gettext_noop('Slovak')),
61 ('sl', gettext_noop('Slovenian')),
62 ('sr', gettext_noop('Serbian')),
63 ('sv', gettext_noop('Swedish')),
64 ('uk', gettext_noop('Ukrainian')),
65 ('zh-cn', gettext_noop('Simplified Chinese')),
66 ('zh-tw', gettext_noop('Traditional Chinese')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others. N...
jacob authored
67 )
68
27f0fd8 fixed #1660: added support functions and tags for bidi language support
hugo authored
69 # Languages using BiDi (right-to-left) layout
70 LANGUAGES_BIDI = ("he",)
71
37535cb Added USE_I18N setting, which lets you turn off internationalization ove...
adrian authored
72 # If you set this to False, Django will make some optimizations so as not
73 # to load the internationalization machinery.
74 USE_I18N = True
75
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
76 # Not-necessarily-technical managers of the site. They get broken link
77 # notifications and other various e-mails.
78 MANAGERS = ADMINS
79
84b95fc Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_CONT...
adrian authored
80 # Default content type and charset to use for all HttpResponse objects, if a
81 # MIME type isn't manually specified. These are used to construct the
82 # Content-Type header.
83 DEFAULT_CONTENT_TYPE = 'text/html'
84 DEFAULT_CHARSET = 'utf-8'
9945b69 Fixed #333 -- Added DEFAULT_MIME_TYPE setting, and set it to 'text/html;...
adrian authored
85
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
86 # E-mail address that error messages come from.
87 SERVER_EMAIL = 'root@localhost'
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
88
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
89 # Whether to send broken-link e-mails.
51a9555 Changed SEND_BROKEN_LINK_EMAILS from True to False in global_settings --...
adrian authored
90 SEND_BROKEN_LINK_EMAILS = False
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
91
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
92 # Database connection info.
0b99a86 MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-in...
adrian authored
93 DATABASE_ENGINE = '' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
fead36d Fixed #225 -- Added first stab at MS SQL Server support (via ADO). Thank...
adrian authored
94 DATABASE_NAME = '' # Or path to database file if using sqlite3.
95 DATABASE_USER = '' # Not used with sqlite3.
96 DATABASE_PASSWORD = '' # Not used with sqlite3.
97 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
98 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
99
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
100 # Host for sending e-mail.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
101 EMAIL_HOST = 'localhost'
102
6ccd836 Fixed #1555 -- Added EMAIL_PORT setting. Thanks, bde3
adrian authored
103 # Port for sending e-mail.
104 EMAIL_PORT = 25
105
01c2484 Fixed #1529 -- Added support for authenticated SMTP to django.core.mail....
adrian authored
106 # Optional SMTP authentication information for EMAIL_HOST.
107 EMAIL_HOST_USER = ''
108 EMAIL_HOST_PASSWORD = ''
109
314ff5b Added INSTALLED_APPS to global_settings. It's an empty tuple by default.
adrian authored
110 # List of strings representing installed apps.
111 INSTALLED_APPS = ()
112
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
113 # List of locations of the template source files, in search order.
114 TEMPLATE_DIRS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
115
08fc1a9 Fixed #582 -- Added support for loading templates from Python eggs, and ...
adrian authored
116 # List of callables that know how to import templates from various sources.
117 # See the comments in django/core/template/loader.py for interface
118 # documentation.
119 TEMPLATE_LOADERS = (
0b99a86 MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-in...
adrian authored
120 'django.template.loaders.filesystem.load_template_source',
121 'django.template.loaders.app_directories.load_template_source',
122 # 'django.template.loaders.eggs.load_template_source',
08fc1a9 Fixed #582 -- Added support for loading templates from Python eggs, and ...
adrian authored
123 )
124
0b99a86 MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-in...
adrian authored
125 # List of processors used by RequestContext to populate the context.
d096ac0 Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you specify ...
adrian authored
126 # Each one should be a callable that takes the request object as its
127 # only parameter and returns a dictionary to add to the context.
128 TEMPLATE_CONTEXT_PROCESSORS = (
129 'django.core.context_processors.auth',
130 'django.core.context_processors.debug',
131 'django.core.context_processors.i18n',
0752940 Fixed #1271 -- Added a 'request' template context processor, which is no...
adrian authored
132 # 'django.core.context_processors.request',
d096ac0 Fixed #925 -- Added TEMPLATE_CONTEXT_PROCESSORS, which lets you specify ...
adrian authored
133 )
134
c2b1a4b Added TEMPLATE_STRING_IF_INVALID setting, which specifies what the templ...
adrian authored
135 # Output to use in template system for invalid (e.g. misspelled) variables.
136 TEMPLATE_STRING_IF_INVALID = ''
137
8a28ba8 Added ADMIN_MEDIA_PREFIX setting instead of hard-coding /m/
adrian authored
138 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
139 # trailing slash.
140 # Examples: "http://foo.com/media/", "/media/".
141 ADMIN_MEDIA_PREFIX = '/media/'
142
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
143 # Default e-mail address to use for various automated correspondence from
144 # the site managers.
145 DEFAULT_FROM_EMAIL = 'webmaster@localhost'
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
146
d8b1950 Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]" p...
jacob authored
147 # Subject-line prefix for email messages send with django.core.mail.mail_admins
148 # or ...mail_managers. Make sure to include the trailing space.
149 EMAIL_SUBJECT_PREFIX = '[Django] '
150
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
151 # Whether to append trailing slashes to URLs.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
152 APPEND_SLASH = True
153
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
154 # 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
155 PREPEND_WWW = False
156
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
157 # List of compiled regular expression objects representing User-Agent strings
158 # that are not allowed to visit any page, systemwide. Use this for bad
159 # robots/crawlers. Here are a few examples:
160 # import re
161 # DISALLOWED_USER_AGENTS = (
162 # re.compile(r'^NaverBot.*'),
163 # re.compile(r'^EmailSiphon.*'),
164 # re.compile(r'^SiteSucker.*'),
165 # re.compile(r'^sohu-search')
166 # )
167 DISALLOWED_USER_AGENTS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
168
169 ABSOLUTE_URL_OVERRIDES = {}
170
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
171 # Tuple of strings representing allowed prefixes for the {% ssi %} tag.
172 # Example: ('/home/html', '/var/www')
173 ALLOWED_INCLUDE_ROOTS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
174
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
175 # If this is a admin settings module, this should be a list of
176 # settings modules (in the format 'foo.bar.baz') for which this admin
177 # is an admin.
fb044f9 Changed global_settings.ADMIN_FOR from [] to ()
adrian authored
178 ADMIN_FOR = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
179
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
180 # 404s that may be ignored.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
181 IGNORABLE_404_STARTS = ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
182 IGNORABLE_404_ENDS = ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
183
de9a2d6 Fixed #95 -- Added SECRET_KEY setting instead of hard-coding keys that a...
adrian authored
184 # A secret key for this particular Django installation. Used in secret-key
185 # hashing algorithms. Set this in your settings, or Django will complain
186 # loudly.
187 SECRET_KEY = ''
188
932f581 Moved JING from django.core.validators into settings where it belongs. ...
jacob authored
189 # Path to the "jing" executable -- needed to validate XMLFields
f36730e Changed default JING_PATH setting to be something that might actually be...
jacob authored
190 JING_PATH = "/usr/bin/jing"
932f581 Moved JING from django.core.validators into settings where it belongs. ...
jacob authored
191
91f9c9b Reordered MEDIA_ROOT and MEDIA_URL in global_settings so they're not in ...
adrian authored
192 # Absolute path to the directory that holds media.
193 # Example: "/home/media/media.lawrence.com/"
194 MEDIA_ROOT = ''
195
196 # URL that handles the media served from MEDIA_ROOT.
197 # Example: "http://media.lawrence.com"
198 MEDIA_URL = ''
199
e2ca5d1 Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT setti...
adrian authored
200 # Default formatting for date objects. See all available format strings here:
201 # http://www.djangoproject.com/documentation/templates/#now
202 DATE_FORMAT = 'N j, Y'
203
204 # Default formatting for datetime objects. See all available format strings here:
205 # http://www.djangoproject.com/documentation/templates/#now
206 DATETIME_FORMAT = 'N j, Y, P'
207
208 # Default formatting for time objects. See all available format strings here:
209 # http://www.djangoproject.com/documentation/templates/#now
210 TIME_FORMAT = 'P'
211
ca45f2e Fixed #2062 -- Added YEAR_MONTH_FORMAT and MONTH_DAY_FORMAT settings, an...
adrian authored
212 # Default formatting for date objects when only the year and month are relevant.
213 # See all available format strings here:
214 # http://www.djangoproject.com/documentation/templates/#now
215 YEAR_MONTH_FORMAT = 'F Y'
216
217 # Default formatting for date objects when only the month and day are relevant.
218 # See all available format strings here:
219 # http://www.djangoproject.com/documentation/templates/#now
220 MONTH_DAY_FORMAT = 'F j'
221
0f750d9 Fixed #1323 -- Added ENABLE_PSYCO. Thanks, Wojtek.
adrian authored
222 # Whether to enable Psyco, which optimizes Python code. Requires Psyco.
223 # http://psyco.sourceforge.net/
224 ENABLE_PSYCO = False
225
0b99a86 MERGED MAGIC-REMOVAL BRANCH TO TRUNK. This change is highly backwards-in...
adrian authored
226 # Do you want to manage transactions manually?
227 # Hint: you really don't!
228 TRANSACTIONS_MANAGED = False
229
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
230 ##############
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
231 # MIDDLEWARE #
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
232 ##############
233
234 # List of middleware classes to use. Order is important; in the request phase,
235 # this middleware classes will be applied in the order given, and in the
236 # response phase the middleware will be applied in reverse order.
237 MIDDLEWARE_CLASSES = (
67fb3b9 Fixed #1998 -- Changed double quotes to single quotes
adrian authored
238 'django.contrib.sessions.middleware.SessionMiddleware',
239 'django.contrib.auth.middleware.AuthenticationMiddleware',
240 # 'django.middleware.http.ConditionalGetMiddleware',
241 # 'django.middleware.gzip.GZipMiddleware',
242 'django.middleware.common.CommonMiddleware',
243 'django.middleware.doc.XViewMiddleware',
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
244 )
245
98e672f Fixed #1 -- Added anonymous session support via middleware and request.s...
adrian authored
246 ############
247 # SESSIONS #
248 ############
249
d5e9556 Fixed #857 -- Changed default session cookie name from hotclub to sessio...
adrian authored
250 SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want.
98e672f Fixed #1 -- Added anonymous session support via middleware and request.s...
adrian authored
251 SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks).
252 SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie.
8d429f0 Added SESSION_SAVE_EVERY_REQUEST setting.
adrian authored
253 SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request.
1c6831a Fixed #395 -- Added SESSION_EXPIRE_AT_BROWSER_CLOSE setting, which regul...
adrian authored
254 SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether sessions expire when a user closes his browser.
98e672f Fixed #1 -- Added anonymous session support via middleware and request.s...
adrian authored
255
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
256 #########
257 # CACHE #
258 #########
259
260 # 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
261 # possible values.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
262 CACHE_BACKEND = 'simple://'
c4264f6 Added CACHE_MIDDLEWARE_KEY_PREFIX to global_settings
adrian authored
263 CACHE_MIDDLEWARE_KEY_PREFIX = ''
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
264
265 ####################
266 # COMMENTS #
267 ####################
268
269 COMMENTS_ALLOW_PROFANITIES = False
270
271 # The group ID that designates which users are banned.
272 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
273 COMMENTS_BANNED_USERS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
274
275 # The group ID that designates which users can moderate comments.
276 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
277 COMMENTS_MODERATORS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
278
279 # The group ID that designates the users whose comments should be e-mailed to MANAGERS.
280 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
281 COMMENTS_SKETCHY_USERS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
282
283 # The system will e-mail MANAGERS the first COMMENTS_FIRST_FEW comments by each
284 # user. Set this to 0 if you want to disable it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
285 COMMENTS_FIRST_FEW = 0
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
286
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
287 # A tuple of IP addresses that have been banned from participating in various
288 # Django-powered features.
289 BANNED_IPS = ()
9fed82a Merged multi-auth branch to trunk. See the authentication docs for the ...
jacob authored
290
291 ##################
292 # AUTHENTICATION #
293 ##################
294
295 AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
Something went wrong with that request. Please try again.