diff options
| author | tom christie tom@tomchristie.com | 2010-12-29 19:37:57 +0000 | 
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2010-12-29 19:37:57 +0000 | 
| commit | 650111dc8c0800e5b7d4c878c1d454657b68efca (patch) | |
| tree | b2cb8a07eb60abe20012b352d856bb1dcb13f440 /src/manage.py | |
| download | django-rest-framework-650111dc8c0800e5b7d4c878c1d454657b68efca.tar.bz2 | |
Initial commit of all files to the repository.
Diffstat (limited to 'src/manage.py')
| -rwxr-xr-x | src/manage.py | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/src/manage.py b/src/manage.py new file mode 100755 index 00000000..5e78ea97 --- /dev/null +++ b/src/manage.py @@ -0,0 +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) | 
