Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 330 lines (276 sloc) 11.353 kB
2be5999 @evgenyfadeev custom avatars work, still need to improve styling of the change avat…
evgenyfadeev authored
1 ## Django settings for ASKBOT enabled project.
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
2 import os.path
3 import logging
e5309b1 @evgenyfadeev removed python-openid from the list of external dependencies
evgenyfadeev authored
4 import sys
5 import askbot
3913d6c @evgenyfadeev collectstatic management command works with askbot on first pass
evgenyfadeev authored
6 import site
e5309b1 @evgenyfadeev removed python-openid from the list of external dependencies
evgenyfadeev authored
7
8 #this line is added so that we can import pre-packaged askbot dependencies
0118be4 @piskvorky added support for django.contrib.staticfiles
piskvorky authored
9 ASKBOT_ROOT = os.path.abspath(os.path.dirname(askbot.__file__))
3913d6c @evgenyfadeev collectstatic management command works with askbot on first pass
evgenyfadeev authored
10 site.addsitedir(os.path.join(ASKBOT_ROOT, 'deps'))
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
11
4d940c7 @dmzio fixes #155
dmzio authored
12 DEBUG = True # set to True to enable debugging
13 TEMPLATE_DEBUG = False # keep false when debugging jinja2 templates
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
14 INTERNAL_IPS = ('127.0.0.1',)
9843847 @evgenyfadeev added cache availability test and ALLOWED_HOSTS default setting
evgenyfadeev authored
15 ALLOWED_HOSTS = ['*',]#change this for better security on your site
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
16
17 ADMINS = (
18 ('Your Name', 'your_email@domain.com'),
19 )
20
21 MANAGERS = ADMINS
22
3758c87 @evgenyfadeev incremented version and moved install doc file to askbot/docs directory
evgenyfadeev authored
23 DATABASE_ENGINE = 'postgresql_psycopg2' # only postgres (>8.3) and mysql are supported so far others have not been tested yet
9d2c433 @evgenyfadeev basic deployment script works
evgenyfadeev authored
24 DATABASE_NAME = '' # Or path to database file if using sqlite3.
25 DATABASE_USER = '' # Not used with sqlite3.
26 DATABASE_PASSWORD = '' # Not used with sqlite3.
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
27 DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
28 DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
29
e16cc0e @mamoutkine built basic post by email feature
mamoutkine authored
30 #outgoing mail server settings
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
31 SERVER_EMAIL = ''
32 DEFAULT_FROM_EMAIL = ''
33 EMAIL_HOST_USER = ''
34 EMAIL_HOST_PASSWORD = ''
dcce84a @evgenyfadeev added fix_answer_counts command and removed the useless mailserver se…
evgenyfadeev authored
35 EMAIL_SUBJECT_PREFIX = ''
36 EMAIL_HOST=''
37 EMAIL_PORT=''
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
38 EMAIL_USE_TLS=False
5120af0 @evgenyfadeev fixed answer_count update on answer deletion, improved algorithm for …
evgenyfadeev authored
39 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
40
e16cc0e @mamoutkine built basic post by email feature
mamoutkine authored
41 #incoming mail settings
42 #after filling out these settings - please
43 #go to the site's live settings and enable the feature
44 #"Email settings" -> "allow asking by email"
45 #
93928e0 @fitoria updated settings.mustache
fitoria authored
46 # WARNING: command post_emailed_questions DELETES all
e16cc0e @mamoutkine built basic post by email feature
mamoutkine authored
47 # emails from the mailbox each time
48 # do not use your personal mail box here!!!
49 #
50 IMAP_HOST = ''
51 IMAP_HOST_USER = ''
52 IMAP_HOST_PASSWORD = ''
53 IMAP_PORT = ''
54 IMAP_USE_TLS = False
55
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
56 # Local time zone for this installation. Choices can be found here:
57 # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
58 # although not all choices may be available on all operating systems.
59 # On Unix systems, a value of None will cause Django to use the same
60 # timezone as the operating system.
61 # If running in a Windows environment this must be set to the same as your
62 # system time zone.
63 TIME_ZONE = 'America/Chicago'
64
65 SITE_ID = 1
66
67 # If you set this to False, Django will make some optimizations so as not
68 # to load the internationalization machinery.
69 USE_I18N = True
70 LANGUAGE_CODE = 'en'
71
72 # Absolute path to the directory that holds media.
73 # Example: "/home/media/media.lawrence.com/"
fc02faa @evgenyfadeev replaced ASKBOT_FILE_UPLOAD_DIR setting with MEDIA_ROOT
evgenyfadeev authored
74 MEDIA_ROOT = os.path.join(os.path.dirname(__file__), 'askbot', 'upfiles')
3913d6c @evgenyfadeev collectstatic management command works with askbot on first pass
evgenyfadeev authored
75 MEDIA_URL = '/upfiles/'#url to uploaded media
76 STATIC_URL = '/m/'#url to project static files
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
77
9d2c433 @evgenyfadeev basic deployment script works
evgenyfadeev authored
78 PROJECT_ROOT = os.path.dirname(__file__)
3913d6c @evgenyfadeev collectstatic management command works with askbot on first pass
evgenyfadeev authored
79 STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')#path to files collected by collectstatic
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
80
81 # URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
82 # trailing slash.
83 # Examples: "http://foo.com/media/", "/media/".
a463740 @evgenyfadeev staticfiles app seems to work with askbot for django 1.2 and 1.3
evgenyfadeev authored
84 ADMIN_MEDIA_PREFIX = STATIC_URL + 'admin/'#must be this value
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
85
86 # Make up some unique string, and don't share it with anybody.
93928e0 @fitoria updated settings.mustache
fitoria authored
87 SECRET_KEY = 'sdljdfjkldsflsdjkhsjkldgjlsdgfs s '
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
88
89 # List of callables that know how to import templates from various sources.
90 TEMPLATE_LOADERS = (
7658b67 @fitoria Fixed issue with feed, changed settings.py template, fixed issue with
fitoria authored
91 'django.template.loaders.filesystem.Loader',
92 'django.template.loaders.app_directories.Loader',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
93 #below is askbot stuff for this tuple
1f2e789 @fitoria Fixed bug 97: UserWarning: Cannot translate loader
fitoria authored
94 #'askbot.skins.loaders.load_template_source', #changed due to bug 97
95 'askbot.skins.loaders.filesystem_load_template_source',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
96 #'django.template.loaders.eggs.load_template_source',
97 )
98
99
100 MIDDLEWARE_CLASSES = (
101 #'django.middleware.gzip.GZipMiddleware',
102 'django.contrib.sessions.middleware.SessionMiddleware',
cf6c304 @evgenyfadeev added message middleware to the settings.py templates
evgenyfadeev authored
103 'django.contrib.messages.middleware.MessageMiddleware',
4422215 @fitoria cleaned up language selection feature, middleware not longer required…
fitoria authored
104 ## Enable the following middleware if you want to enable
105 ## language selection in the site settings.
106 #'askbot.middleware.locale.LocaleMiddleware',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
107 #'django.middleware.cache.UpdateCacheMiddleware',
108 'django.middleware.common.CommonMiddleware',
109 #'django.middleware.cache.FetchFromCacheMiddleware',
110 'django.contrib.auth.middleware.AuthenticationMiddleware',
111 #'django.middleware.sqlprint.SqlPrintingMiddleware',
112
113 #below is askbot stuff for this tuple
114 'askbot.middleware.anon_user.ConnectToSessionMessagesMiddleware',
a604709 @razum2um Feature #111: closed forum mode + tests
razum2um authored
115 'askbot.middleware.forum_mode.ForumModeMiddleware',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
116 'askbot.middleware.cancel.CancelActionMiddleware',
117 'django.middleware.transaction.TransactionMiddleware',
f9a96b0 @evgenyfadeev removed debug toolbar from dependencies, b/c developers can enable it…
evgenyfadeev authored
118 #'debug_toolbar.middleware.DebugToolbarMiddleware',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
119 'askbot.middleware.view_log.ViewLogMiddleware',
120 'askbot.middleware.spaceless.SpacelessMiddleware',
121 )
122
050b65a @tmandry Add django_compressor to compress CSS, JS and automatically compile LESS
tmandry authored
123 JINJA2_EXTENSIONS = (
124 'compressor.contrib.jinja2ext.CompressorExtension',
125 )
126
127 COMPRESS_PRECOMPILERS = (
128 ('text/less', 'lessc {infile} {outfile}'),
129 )
130
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
131
132 ROOT_URLCONF = os.path.basename(os.path.dirname(__file__)) + '.urls'
133
134
135 #UPLOAD SETTINGS
136 FILE_UPLOAD_TEMP_DIR = os.path.join(
93928e0 @fitoria updated settings.mustache
fitoria authored
137 os.path.dirname(__file__),
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
138 'tmp'
139 ).replace('\\','/')
140
141 FILE_UPLOAD_HANDLERS = (
142 'django.core.files.uploadhandler.MemoryFileUploadHandler',
143 'django.core.files.uploadhandler.TemporaryFileUploadHandler',
144 )
bb627e7 @evgenyfadeev applied permissions to file upload
evgenyfadeev authored
145 ASKBOT_ALLOWED_UPLOAD_FILE_TYPES = ('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.tiff')
146 ASKBOT_MAX_UPLOAD_FILE_SIZE = 1024 * 1024 #result in bytes
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
147 DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
148
149
d3860a0 @evgenyfadeev allowed skins to be stored in custom directories
evgenyfadeev authored
150 #TEMPLATE_DIRS = (,) #template have no effect in askbot, use the variable below
ef4686c @fitoria fixed setup template changed typo in ASKBOT_EXTRA_SKINS_DIR
fitoria authored
151 #ASKBOT_EXTRA_SKINS_DIR = #path to your private skin collection
d3860a0 @evgenyfadeev allowed skins to be stored in custom directories
evgenyfadeev authored
152 #take a look here http://askbot.org/en/question/207/
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
153
154 TEMPLATE_CONTEXT_PROCESSORS = (
155 'django.core.context_processors.request',
156 'askbot.context.application_settings',
157 #'django.core.context_processors.i18n',
158 'askbot.user_messages.context_processors.user_messages',#must be before auth
44c3e32 @fitoria fixed feed url issue and template context middleware issue more info …
fitoria authored
159 'django.contrib.auth.context_processors.auth', #this is required for admin
50f84ad @evgenyfadeev added csrf context processor to the template settings.py
evgenyfadeev authored
160 'django.core.context_processors.csrf', #necessary for csrf protection
00c3df9 @evgenyfadeev added unread pm inbox count to the context
evgenyfadeev authored
161 'askbot.deps.group_messaging.context.group_messaging_context',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
162 )
163
164
165 INSTALLED_APPS = (
1c16316 @evgenyfadeev added js patch for the noscript tag to hide red margin on IE and disa…
evgenyfadeev authored
166 'longerusername',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
167 'django.contrib.auth',
168 'django.contrib.contenttypes',
169 'django.contrib.sessions',
170 'django.contrib.sites',
3913d6c @evgenyfadeev collectstatic management command works with askbot on first pass
evgenyfadeev authored
171 'django.contrib.staticfiles',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
172
173 #all of these are needed for the askbot
174 'django.contrib.admin',
175 'django.contrib.humanize',
176 'django.contrib.sitemaps',
3d71866 @fitoria display error messages via exceptions on livesettings
fitoria authored
177 'django.contrib.messages',
d199a0a @evgenyfadeev updated the setup template files
evgenyfadeev authored
178 'compressor',
f9a96b0 @evgenyfadeev removed debug toolbar from dependencies, b/c developers can enable it…
evgenyfadeev authored
179 #'debug_toolbar',
3c9079c @fitoria added setup_procedures for haystack and setup_templates
fitoria authored
180 #'haystack',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
181 'askbot',
182 'askbot.deps.django_authopenid',
183 #'askbot.importers.stackexchange', #se loader
184 'south',
185 'askbot.deps.livesettings',
186 'keyedcache',
7eb5758 @evgenyfadeev added robots.txt nbsp chars instead of eatenup spaces by the spacele…
evgenyfadeev authored
187 'robots',
a87efe2 @evgenyfadeev added display of country flags
evgenyfadeev authored
188 'django_countries',
ba93178 @evgenyfadeev finished celery support with Alex
evgenyfadeev authored
189 'djcelery',
190 'djkombu',
57a3961 @evgenyfadeev pull followit from pypi from now on
evgenyfadeev authored
191 'followit',
9cf8cef @evgenyfadeev added missing settings to the setup templates
evgenyfadeev authored
192 'tinymce',
2be5999 @evgenyfadeev custom avatars work, still need to improve styling of the change avat…
evgenyfadeev authored
193 #'avatar',#experimental use git clone git://github.com/ericflo/django-avatar.git$
050b65a @tmandry Add django_compressor to compress CSS, JS and automatically compile LESS
tmandry authored
194
195 'compressor',
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
196 )
197
198
199 #setup memcached for production use!
259ff4b @stapelberg Use modern django cache configuration in settings
stapelberg authored
200 # See http://docs.djangoproject.com/en/1.8/topics/cache/ for details.
201 CACHES = {
202 'default': {
203 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
204 'LOCATION': 'askbot',
205 'TIMEOUT': 6000,
206 # Chose a unique KEY_PREFIX to avoid clashes with other applications
207 # using the same cache (e.g. a shared memcache instance).
208 'KEY_PREFIX': 'askbot',
209 }
210 }
211
72210f4 @evgenyfadeev merged with the user-groups branch
evgenyfadeev authored
212 #sets a special timeout for livesettings if you want to make them different
259ff4b @stapelberg Use modern django cache configuration in settings
stapelberg authored
213 LIVESETTINGS_CACHE_TIMEOUT = CACHES['default']['TIMEOUT']
f692b08 @razum2um Feature #134: time-based cache for anonymous only & tests
razum2um authored
214 CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
215 #If you use memcache you may want to uncomment the following line to enable memcached based sessions
f4a72b0 @evgenyfadeev fixed the cached_db setting for the SESSION_ENGINE setting that is co…
evgenyfadeev authored
216 #SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
217
98360b7 @evgenyfadeev fixed an omission in settings.py template and bumped minor version fo…
evgenyfadeev authored
218 AUTHENTICATION_BACKENDS = (
219 'django.contrib.auth.backends.ModelBackend',
220 'askbot.deps.django_authopenid.backends.AuthBackend',
221 )
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
222
223 #logging settings
224 LOG_FILENAME = 'askbot.log'
225 logging.basicConfig(
226 filename=os.path.join(os.path.dirname(__file__), 'log', LOG_FILENAME),
d23043c @evgenyfadeev removed coffin, from trunk, added dependencies and updated the version
evgenyfadeev authored
227 level=logging.CRITICAL,
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
228 format='%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s',
229 )
230
231 ###########################
232 #
233 # this will allow running your forum with url like http://site.com/forum
234 #
bb627e7 @evgenyfadeev applied permissions to file upload
evgenyfadeev authored
235 # ASKBOT_URL = 'forum/'
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
236 #
bb627e7 @evgenyfadeev applied permissions to file upload
evgenyfadeev authored
237 ASKBOT_URL = '' #no leading slash, default = '' empty string
3fa142b @awerner Added ASKBOT_TRANSLATE_URL setting
awerner authored
238 ASKBOT_TRANSLATE_URL = True #translate specific URLs
ddb36e5 @evgenyfadeev easy_install kind of works
evgenyfadeev authored
239 _ = lambda v:v #fake translation function for the login url
bb627e7 @evgenyfadeev applied permissions to file upload
evgenyfadeev authored
240 LOGIN_URL = '/%s%s%s' % (ASKBOT_URL,_('account/'),_('signin/'))
7c789bc @evgenyfadeev added support for LOGIN_REDIRECT_URL to django_authopenid submodule
evgenyfadeev authored
241 LOGIN_REDIRECT_URL = ASKBOT_URL #adjust if needed
2f3f90f @evgenyfadeev made logo uploadable
evgenyfadeev authored
242 #note - it is important that upload dir url is NOT translated!!!
126795e @evgenyfadeev fixed site logo urls
evgenyfadeev authored
243 #also, this url must not have the leading slash
b3afad4 @evgenyfadeev questions page works on jinja, without translations yet
evgenyfadeev authored
244 ALLOW_UNICODE_SLUGS = False
97d927c @evgenyfadeev added setting to settings.py ASKBOT_ADD_STACKEXCHANGE_URLS
evgenyfadeev authored
245 ASKBOT_USE_STACKEXCHANGE_URLS = False #mimic url scheme of stackexchange
30c99e0 @alexrobbins Adding celery.
alexrobbins authored
246
247 #Celery Settings
1aa50bb @fitoria changed celery broker setting name
fitoria authored
248 BROKER_TRANSPORT = "djkombu.transport.DatabaseTransport"
30c99e0 @alexrobbins Adding celery.
alexrobbins authored
249 CELERY_ALWAYS_EAGER = True
ba93178 @evgenyfadeev finished celery support with Alex
evgenyfadeev authored
250
251 import djcelery
252 djcelery.setup_loader()
67ad595 @evgenyfadeev added CSRF settings to the sample settings.py file
evgenyfadeev authored
253
1aa50bb @fitoria changed celery broker setting name
fitoria authored
254 CSRF_COOKIE_NAME = 'askbot_csrf'
d42a274 @evgenyfadeev removed CSRF_COOKIE_DOMAIN setting from the settings.py template
evgenyfadeev authored
255 #enter domain name here - e.g. example.com
256 #CSRF_COOKIE_DOMAIN = ''
0118be4 @piskvorky added support for django.contrib.staticfiles
piskvorky authored
257
f28adcc @evgenyfadeev combined all dev branches for kp
evgenyfadeev authored
258 STATICFILES_DIRS = (
39c4bb7 @evgenyfadeev fixed a syntax error in the settings.py templates
evgenyfadeev authored
259 ('default/media', os.path.join(ASKBOT_ROOT, 'media')),
f28adcc @evgenyfadeev combined all dev branches for kp
evgenyfadeev authored
260 )
050b65a @tmandry Add django_compressor to compress CSS, JS and automatically compile LESS
tmandry authored
261 STATICFILES_FINDERS = (
262 'django.contrib.staticfiles.finders.FileSystemFinder',
263 'django.contrib.staticfiles.finders.AppDirectoriesFinder',
264 'compressor.finders.CompressorFinder',
265 )
d82b8b2 @evgenyfadeev added required setting RECAPTCHA_USE_SSL = True
evgenyfadeev authored
266
267 RECAPTCHA_USE_SSL = True
3c9079c @fitoria added setup_procedures for haystack and setup_templates
fitoria authored
268
269 #HAYSTACK_SETTINGS
270 ENABLE_HAYSTACK_SEARCH = False
8d6908b @fitoria fixed startup procedures, and solr docs
fitoria authored
271 #Uncomment for multilingual setup:
272 #HAYSTACK_ROUTERS = ['askbot.search.haystack.routers.LanguageRouter',]
273
274 #Uncomment if you use haystack
275 #More info in http://django-haystack.readthedocs.org/en/latest/settings.html
276 #HAYSTACK_CONNECTIONS = {
277 # 'default': {
278 # 'ENGINE': 'haystack.backends.simple_backend.SimpleEngine',
279 # }
280 #}
2a39826 @fitoria Merge branch 'master' into haystack
fitoria authored
281
895f12f @evgenyfadeev added django-tinymce module to enable the script compression
evgenyfadeev authored
282 TINYMCE_COMPRESSOR = True
283 TINYMCE_SPELLCHECKER = False
efa1137 @evgenyfadeev changed paths to tinymce media
evgenyfadeev authored
284 TINYMCE_JS_ROOT = os.path.join(STATIC_ROOT, 'default/media/js/tinymce/')
5c233c4 @evgenyfadeev made more changes to the setup templates files
evgenyfadeev authored
285
efa1137 @evgenyfadeev changed paths to tinymce media
evgenyfadeev authored
286 #TINYMCE_JS_URL = STATIC_URL + 'default/media/js/tinymce/tiny_mce.js'
895f12f @evgenyfadeev added django-tinymce module to enable the script compression
evgenyfadeev authored
287 TINYMCE_DEFAULT_CONFIG = {
288 'plugins': 'askbot_imageuploader,askbot_attachment',
9cf8cef @evgenyfadeev added missing settings to the setup templates
evgenyfadeev authored
289 'convert_urls': False,
895f12f @evgenyfadeev added django-tinymce module to enable the script compression
evgenyfadeev authored
290 'theme': 'advanced',
291 'force_br_newlines': True,
292 'force_p_newlines': False,
293 'forced_root_block': '',
294 'mode' : 'textareas',
3605bae @evgenyfadeev enabled spellchecker automatically if used in tinymce
evgenyfadeev authored
295 'oninit': "TinyMCE.onInitHook",
895f12f @evgenyfadeev added django-tinymce module to enable the script compression
evgenyfadeev authored
296 'plugins': 'askbot_imageuploader,askbot_attachment',
297 'theme_advanced_toolbar_location' : 'top',
298 'theme_advanced_toolbar_align': 'left',
b144504 @evgenyfadeev added tinymce config checker for the settings.py
evgenyfadeev authored
299 'theme_advanced_buttons1': 'bold,italic,underline,|,bullist,numlist,|,undo,redo,|,link,unlink,askbot_imageuploader,askbot_attachment',
895f12f @evgenyfadeev added django-tinymce module to enable the script compression
evgenyfadeev authored
300 'theme_advanced_buttons2': '',
301 'theme_advanced_buttons3' : '',
302 'theme_advanced_path': False,
303 'theme_advanced_resizing': True,
304 'theme_advanced_resize_horizontal': False,
305 'theme_advanced_statusbar_location': 'bottom',
028b94f @fitoria updated settings template and startup procedures to make tinymce work
fitoria authored
306 'width': '730',
895f12f @evgenyfadeev added django-tinymce module to enable the script compression
evgenyfadeev authored
307 'height': '250'
308 }
81b4b2d @fitoria Added initial work for limit edit notification
fitoria authored
309
310 #delayed notifications, time in seconds, 15 mins by default
311 NOTIFICATION_DELAY_TIME = 60 * 15
7ec5b33 @fitoria added ASKBOT_MULTILINGUAL to settings.py template, tests fails if thi…
fitoria authored
312
313 GROUP_MESSAGING = {
314 'BASE_URL_GETTER_FUNCTION': 'askbot.models.user_get_profile_url',
315 'BASE_URL_PARAMS': {'section': 'messages', 'sort': 'inbox'}
316 }
317
318 ASKBOT_MULTILINGUAL = False
d199a0a @evgenyfadeev updated the setup template files
evgenyfadeev authored
319
4457307 @evgenyfadeev one more tweak
evgenyfadeev authored
320 COMPRESS_JS_FILTERS = []
5a5aa5d @fitoria solved import error issue with circular imports
fitoria authored
321 COMPRESS_PARSER = 'compressor.parser.HtmlParser'
cb3aa0d @evgenyfadeev one more tweak
evgenyfadeev authored
322 JINJA2_EXTENSIONS = ('compressor.contrib.jinja2ext.CompressorExtension',)
c132146 prevent south migrate during tests
Robert Martin authored
323
324 # Use syncdb for tests instead of South migrations. Without this, some tests
325 # fail spuriously in MySQL.
326 SOUTH_TESTS_MIGRATE = False
f1f6eeb @fitoria added expire_on field to the email verifier
fitoria authored
327
328 VERIFIER_EXPIRE_DAYS = 3
5035d20 @evgenyfadeev replaced seting AUTO_GENERATE_AVATAR_SIZES with AVATAR_AUTO_GENERATE_…
evgenyfadeev authored
329 AVATAR_AUTO_GENERATE_SIZES = (16, 32, 48, 128)
Something went wrong with that request. Please try again.