diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-08-23 18:06:56 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-08-25 14:46:36 -0400 |
commit | 1c16316b721117bef9387ba181b49557777a5bc9 (patch) | |
tree | 31eb7f04bd7b8a7b5e89b52a7d862023c28ee6e9 /askbot/startup_procedures.py | |
parent | a2d1de600828ca6017b65ce36498e824cadca87f (diff) | |
download | askbot-1c16316b721117bef9387ba181b49557777a5bc9.tar.gz askbot-1c16316b721117bef9387ba181b49557777a5bc9.tar.bz2 askbot-1c16316b721117bef9387ba181b49557777a5bc9.zip |
added js patch for the noscript tag to hide red margin on IE and disabled Lamson on Windows
Diffstat (limited to 'askbot/startup_procedures.py')
-rw-r--r-- | askbot/startup_procedures.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py index 0fec6d5f..4b4575cf 100644 --- a/askbot/startup_procedures.py +++ b/askbot/startup_procedures.py @@ -512,6 +512,24 @@ def test_custom_user_profile_tab(): footer = 'Please carefully read about adding a custom user profile tab.' print_errors(errors, header = header, footer = footer) +def test_longerusername(): + """tests proper installation of the "longerusername" app + """ + errors = list() + if 'longerusername' not in django_settings.INSTALLED_APPS: + errors.append( + "add 'longerusername', as the first item in the INSTALLED_APPS" + ) + else: + index = django_settings.INSTALLED_APPS.index('longerusername') + if index != 0: + message = "move 'longerusername', to the beginning of INSTALLED_APPS" + raise AskbotConfigError(message) + + if errors: + errors.append('run "python manage.py migrate longerusername"') + print_errors(errors) + def run_startup_tests(): """function that runs all startup tests, mainly checking settings config so far @@ -527,6 +545,7 @@ def run_startup_tests(): test_celery() #test_csrf_cookie_domain() test_staticfiles() + test_longerusername() test_avatar() settings_tester = SettingsTester({ 'CACHE_MIDDLEWARE_ANONYMOUS_ONLY': { |