Statistics
| Branch: | Tag: | Revision:

root / manage.py @ 92c53da1

History | View | Annotate | Download (542 Bytes)

1 00b4f1be Faidon Liambotis
#!/usr/bin/python
2 00b4f1be Faidon Liambotis
from django.core.management import execute_manager
3 00b4f1be Faidon Liambotis
try:
4 00b4f1be Faidon Liambotis
    import settings # Assumed to be in the same directory.
5 00b4f1be Faidon Liambotis
except ImportError:
6 00b4f1be Faidon Liambotis
    import sys
7 00b4f1be Faidon Liambotis
    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__)
8 00b4f1be Faidon Liambotis
    sys.exit(1)
9 00b4f1be Faidon Liambotis
10 00b4f1be Faidon Liambotis
if __name__ == "__main__":
11 00b4f1be Faidon Liambotis
    execute_manager(settings)