diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-08-04 23:25:33 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-08-04 23:25:33 -0400 |
commit | 3ddaeb2d1c9a556768856d3e6b810dfd354aa01e (patch) | |
tree | 1a467ee87ae834590e2d6c88fdaeaf7e391e995d /manage.py | |
parent | a2ec9785ae0367eaf7fb1d094544bd90d0aace85 (diff) | |
download | askbot-3ddaeb2d1c9a556768856d3e6b810dfd354aa01e.tar.gz askbot-3ddaeb2d1c9a556768856d3e6b810dfd354aa01e.tar.bz2 askbot-3ddaeb2d1c9a556768856d3e6b810dfd354aa01e.zip |
included changes by Adolfo and Chaitanya and found temporary fix for languages
Diffstat (limited to 'manage.py')
-rw-r--r-- | manage.py | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,11 +1,11 @@ -#!/usr/bin/env python
-from django.core.management import execute_manager
-try:
- import settings # Assumed to be in the same directory.
-except ImportError:
- import sys
- sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
- sys.exit(1)
-
-if __name__ == "__main__":
- execute_manager(settings)
+#!/usr/bin/env python +from django.core.management import execute_manager +try: + import settings # Assumed to be in the same directory. +except ImportError: + import sys + sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) + sys.exit(1) + +if __name__ == "__main__": + execute_manager(settings) |