diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-09-26 16:09:48 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-09-26 16:09:48 -0400 |
commit | 2fe61a156cae835c886bb07f932b3da4a15d68c7 (patch) | |
tree | e530d52735a3dacfdb9710629ad59df95795ca3c /askbot/startup_procedures.py | |
parent | 3b0d0773664b8fa255e7b2ed3b468022e3455847 (diff) | |
download | askbot-2fe61a156cae835c886bb07f932b3da4a15d68c7.tar.gz askbot-2fe61a156cae835c886bb07f932b3da4a15d68c7.tar.bz2 askbot-2fe61a156cae835c886bb07f932b3da4a15d68c7.zip |
hopefully fixed the uploaded image urls for tinymce
Diffstat (limited to 'askbot/startup_procedures.py')
-rw-r--r-- | askbot/startup_procedures.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py index 091338e5..b9146189 100644 --- a/askbot/startup_procedures.py +++ b/askbot/startup_procedures.py @@ -598,6 +598,28 @@ def test_tinymce(): compressor_on = getattr(django_settings, 'TINYMCE_COMPRESSOR', False) if compressor_on is False: errors.append('add line: TINYMCE_COMPRESSOR = True') + #todo: add pointer to instructions on how to debug tinymce: + #1) add ('tiny_mce', os.path.join(ASKBOT_ROOT, 'media/js/tinymce')), + # to STATIFILES_DIRS + #2) add this to the main urlconf: + # ( + # r'^m/(?P<path>.*)$', + # 'django.views.static.serve', + # {'document_root': static_root} + # ), + #3) disable `compressor_on` check above + #then - tinymce compressing will be disabled and it will + #be possible to debug custom tinymce plugins that are used with askbot + + + default_config = getattr(django_settings, 'TINYMCE_DEFAULT_CONFIG', None) + if default_config: + if 'convert_urls' in default_config: + message = "set 'convert_urls':False in TINYMCE_DEFAULT_CONFIG" + else: + message = "add to TINYMCE_DEFAULT_CONFIG\n'convert_urls': False," + errors.append(message) + #check js root setting - before version 0.7.44 we used to have #"common" skin and after we combined it into the default |