Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 235 lines (185 sloc) 7.972 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
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
4 from django.utils.translation import gettext_lazy as _
5
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
6 ####################
7 # CORE #
8 ####################
9
10 DEBUG = False
a103c7f Fixed #603 -- Added template debugging errors to pretty error-page ou…
adrian authored
11 TEMPLATE_DEBUG = False
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
12
13 # Whether to use the "Etag" header. This saves bandwidth but slows down performance.
14 USE_ETAGS = False
15
4672761 Removed hard-coded Adrian and Jacob in global_settings.ADMINS
adrian authored
16 # People who get code error notifications.
17 # In the format (('Full Name', 'email@domain.com'), ('Full Name', 'anotheremail@domain.com'))
18 ADMINS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
19
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
20 # Tuple of IP addresses, as strings, that:
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
21 # * See debug comments, when DEBUG is true
22 # * Receive x-headers
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
23 INTERNAL_IPS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
24
25 # Local time zone for this installation. All choices can be found here:
26 # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
27 TIME_ZONE = 'America/Chicago'
28
29 # Language code for this installation. All choices can be found here:
30 # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
31 # http://blogs.law.harvard.edu/tech/stories/storyReader$15
32 LANGUAGE_CODE = 'en-us'
33
73d147e Renamed 'Traditional Chinese' to 'Simplified Chinese' and updated po …
adrian authored
34 # Languages we provide translations for, out of the box. The language name
35 # 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
36 LANGUAGES = (
51100f0 fixes #762 - new bengali translation. Thx. b.ghose
hugo authored
37 ('bn', _('Bengali')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
38 ('cs', _('Czech')),
0526e52 added ro and cy to the LANGUAGES setting
hugo authored
39 ('cy', _('Welsh')),
2c168fa added new danish translation
hugo authored
40 ('da', _('Danish')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
41 ('de', _('German')),
42 ('en', _('English')),
43 ('es', _('Spanish')),
44 ('fr', _('French')),
45 ('gl', _('Galician')),
0847c2f fixes #751, added new icelandic translation (thx Dagur), updated the …
hugo authored
46 ('is', _('Icelandic')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
47 ('it', _('Italian')),
6f7a556 Renamed language no_NB to no
adrian authored
48 ('no', _('Norwegian')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
49 ('pt-br', _('Brazilian')),
0526e52 added ro and cy to the LANGUAGES setting
hugo authored
50 ('ro', _('Romanian')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
51 ('ru', _('Russian')),
0526e52 added ro and cy to the LANGUAGES setting
hugo authored
52 ('sk', _('Slovak')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
53 ('sr', _('Serbian')),
52079a3 added swedish to the global settings LANGUAGES
hugo authored
54 ('sv', _('Swedish')),
73d147e Renamed 'Traditional Chinese' to 'Simplified Chinese' and updated po …
adrian authored
55 ('zh-cn', _('Simplified Chinese')),
b51ed69 Merged i18n branch into the trunk! Fixes #65, and perhaps some others…
jacob authored
56 )
57
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
58 # Not-necessarily-technical managers of the site. They get broken link
59 # notifications and other various e-mails.
60 MANAGERS = ADMINS
61
84b95fc Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_C…
adrian authored
62 # Default content type and charset to use for all HttpResponse objects, if a
63 # MIME type isn't manually specified. These are used to construct the
64 # Content-Type header.
65 DEFAULT_CONTENT_TYPE = 'text/html'
66 DEFAULT_CHARSET = 'utf-8'
9945b69 Fixed #333 -- Added DEFAULT_MIME_TYPE setting, and set it to 'text/ht…
adrian authored
67
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
68 # E-mail address that error messages come from.
69 SERVER_EMAIL = 'root@localhost'
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
70
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
71 # Whether to send broken-link e-mails.
51a9555 Changed SEND_BROKEN_LINK_EMAILS from True to False in global_settings…
adrian authored
72 SEND_BROKEN_LINK_EMAILS = False
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
73
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
74 # Database connection info.
fead36d Fixed #225 -- Added first stab at MS SQL Server support (via ADO). Th…
adrian authored
75 DATABASE_ENGINE = 'postgresql' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
76 DATABASE_NAME = '' # Or path to database file if using sqlite3.
77 DATABASE_USER = '' # Not used with sqlite3.
78 DATABASE_PASSWORD = '' # Not used with sqlite3.
79 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
80 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
81
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
82 # Host for sending e-mail.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
83 EMAIL_HOST = 'localhost'
84
314ff5b Added INSTALLED_APPS to global_settings. It's an empty tuple by default.
adrian authored
85 # List of strings representing installed apps.
86 INSTALLED_APPS = ()
87
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
88 # List of locations of the template source files, in search order.
89 TEMPLATE_DIRS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
90
0b5140d Fixed #500 -- Created a TEMPLATE_FILE_EXTENSION setting that lets you…
adrian authored
91 # Extension on all templates.
92 TEMPLATE_FILE_EXTENSION = '.html'
93
08fc1a9 Fixed #582 -- Added support for loading templates from Python eggs, a…
adrian authored
94 # List of callables that know how to import templates from various sources.
95 # See the comments in django/core/template/loader.py for interface
96 # documentation.
97 TEMPLATE_LOADERS = (
98 'django.core.template.loaders.filesystem.load_template_source',
48e4f58 Changed global_settings.TEMPLATE_LOADERS to be same as default projec…
adrian authored
99 'django.core.template.loaders.app_directories.load_template_source',
08fc1a9 Fixed #582 -- Added support for loading templates from Python eggs, a…
adrian authored
100 # 'django.core.template.loaders.eggs.load_template_source',
101 )
102
8a28ba8 Added ADMIN_MEDIA_PREFIX setting instead of hard-coding /m/
adrian authored
103 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
104 # trailing slash.
105 # Examples: "http://foo.com/media/", "/media/".
106 ADMIN_MEDIA_PREFIX = '/media/'
107
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
108 # Default e-mail address to use for various automated correspondence from
109 # the site managers.
110 DEFAULT_FROM_EMAIL = 'webmaster@localhost'
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
111
d8b1950 Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]…
jacob authored
112 # Subject-line prefix for email messages send with django.core.mail.mail_admins
113 # or ...mail_managers. Make sure to include the trailing space.
114 EMAIL_SUBJECT_PREFIX = '[Django] '
115
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
116 # Whether to append trailing slashes to URLs.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
117 APPEND_SLASH = True
118
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
119 # 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
120 PREPEND_WWW = False
121
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
122 # List of compiled regular expression objects representing User-Agent strings
123 # that are not allowed to visit any page, systemwide. Use this for bad
124 # robots/crawlers. Here are a few examples:
125 # import re
126 # DISALLOWED_USER_AGENTS = (
127 # re.compile(r'^NaverBot.*'),
128 # re.compile(r'^EmailSiphon.*'),
129 # re.compile(r'^SiteSucker.*'),
130 # re.compile(r'^sohu-search')
131 # )
132 DISALLOWED_USER_AGENTS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
133
134 ABSOLUTE_URL_OVERRIDES = {}
135
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
136 # Tuple of strings representing allowed prefixes for the {% ssi %} tag.
137 # Example: ('/home/html', '/var/www')
138 ALLOWED_INCLUDE_ROOTS = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
139
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
140 # If this is a admin settings module, this should be a list of
141 # settings modules (in the format 'foo.bar.baz') for which this admin
142 # is an admin.
fb044f9 Changed global_settings.ADMIN_FOR from [] to ()
adrian authored
143 ADMIN_FOR = ()
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
144
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
145 # 404s that may be ignored.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
146 IGNORABLE_404_STARTS = ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
147 IGNORABLE_404_ENDS = ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
148
de9a2d6 Fixed #95 -- Added SECRET_KEY setting instead of hard-coding keys tha…
adrian authored
149 # A secret key for this particular Django installation. Used in secret-key
150 # hashing algorithms. Set this in your settings, or Django will complain
151 # loudly.
152 SECRET_KEY = ''
153
932f581 Moved JING from django.core.validators into settings where it belongs…
jacob authored
154 # Path to the "jing" executable -- needed to validate XMLFields
f36730e Changed default JING_PATH setting to be something that might actually…
jacob authored
155 JING_PATH = "/usr/bin/jing"
932f581 Moved JING from django.core.validators into settings where it belongs…
jacob authored
156
91f9c9b Reordered MEDIA_ROOT and MEDIA_URL in global_settings so they're not …
adrian authored
157 # Absolute path to the directory that holds media.
158 # Example: "/home/media/media.lawrence.com/"
159 MEDIA_ROOT = ''
160
161 # URL that handles the media served from MEDIA_ROOT.
162 # Example: "http://media.lawrence.com"
163 MEDIA_URL = ''
164
e2ca5d1 Fixed #109 -- Created DATE_FORMAT, DATETIME_FORMAT and TIME_FORMAT se…
adrian authored
165 # Default formatting for date objects. See all available format strings here:
166 # http://www.djangoproject.com/documentation/templates/#now
167 DATE_FORMAT = 'N j, Y'
168
169 # Default formatting for datetime objects. See all available format strings here:
170 # http://www.djangoproject.com/documentation/templates/#now
171 DATETIME_FORMAT = 'N j, Y, P'
172
173 # Default formatting for time objects. See all available format strings here:
174 # http://www.djangoproject.com/documentation/templates/#now
175 TIME_FORMAT = 'P'
176
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
177 ##############
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
178 # MIDDLEWARE #
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
179 ##############
180
181 # List of middleware classes to use. Order is important; in the request phase,
182 # this middleware classes will be applied in the order given, and in the
183 # response phase the middleware will be applied in reverse order.
184 MIDDLEWARE_CLASSES = (
7e53dbc Added SessionMiddleware to MIDDLEWARE_CLASSES in global_settings, so …
adrian authored
185 "django.middleware.sessions.SessionMiddleware",
c4264f6 Added CACHE_MIDDLEWARE_KEY_PREFIX to global_settings
adrian authored
186 # "django.middleware.http.ConditionalGetMiddleware",
187 # "django.middleware.gzip.GZipMiddleware",
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
188 "django.middleware.common.CommonMiddleware",
189 "django.middleware.doc.XViewMiddleware",
190 )
191
98e672f Fixed #1 -- Added anonymous session support via middleware and reques…
adrian authored
192 ############
193 # SESSIONS #
194 ############
195
196 SESSION_COOKIE_NAME = 'hotclub' # Cookie name. This can be whatever you want.
197 SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks).
198 SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie.
8d429f0 Added SESSION_SAVE_EVERY_REQUEST setting.
adrian authored
199 SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request.
98e672f Fixed #1 -- Added anonymous session support via middleware and reques…
adrian authored
200
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
201 #########
202 # CACHE #
203 #########
204
205 # 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
206 # possible values.
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
207 CACHE_BACKEND = 'simple://'
c4264f6 Added CACHE_MIDDLEWARE_KEY_PREFIX to global_settings
adrian authored
208 CACHE_MIDDLEWARE_KEY_PREFIX = ''
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
209
210 ####################
211 # COMMENTS #
212 ####################
213
214 COMMENTS_ALLOW_PROFANITIES = False
215
216 # The group ID that designates which users are banned.
217 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
218 COMMENTS_BANNED_USERS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
219
220 # The group ID that designates which users can moderate comments.
221 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
222 COMMENTS_MODERATORS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
223
224 # The group ID that designates the users whose comments should be e-mailed to MANAGERS.
225 # Set to None if you're not using it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
226 COMMENTS_SKETCHY_USERS_GROUP = None
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
227
228 # The system will e-mail MANAGERS the first COMMENTS_FIRST_FEW comments by each
229 # user. Set this to 0 if you want to disable it.
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
230 COMMENTS_FIRST_FEW = 0
33db6db Imported Django from private SVN repository (created from r. 8825)
adrian authored
231
3561cb3 Removed World-Online-specific stuff from django.conf.global_settings
adrian authored
232 # A tuple of IP addresses that have been banned from participating in various
233 # Django-powered features.
234 BANNED_IPS = ()
Something went wrong with that request. Please try again.