diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-08-04 23:25:57 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-08-04 23:25:57 -0400 |
commit | 20a7ce5657bf3d8683bdb4f9b860dbad044fb2f3 (patch) | |
tree | 1a467ee87ae834590e2d6c88fdaeaf7e391e995d /manage.py | |
parent | f447f1a79de3fefee498a79cf7d8262bc774b9e4 (diff) | |
download | askbot-20a7ce5657bf3d8683bdb4f9b860dbad044fb2f3.tar.gz askbot-20a7ce5657bf3d8683bdb4f9b860dbad044fb2f3.tar.bz2 askbot-20a7ce5657bf3d8683bdb4f9b860dbad044fb2f3.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) |