Statistics
| Branch: | Tag: | Revision:

root / astakos / manage.py @ 64cd4730

History | View | Annotate | Download (570 Bytes)

1 64cd4730 Antony Chazapis
#!/usr/bin/env python
2 64cd4730 Antony Chazapis
from django.core.management import execute_manager
3 64cd4730 Antony Chazapis
try:
4 64cd4730 Antony Chazapis
    import settings # Assumed to be in the same directory.
5 64cd4730 Antony Chazapis
except ImportError:
6 64cd4730 Antony Chazapis
    import sys
7 64cd4730 Antony Chazapis
    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 64cd4730 Antony Chazapis
    sys.exit(1)
9 64cd4730 Antony Chazapis
10 64cd4730 Antony Chazapis
def main():
11 64cd4730 Antony Chazapis
    execute_manager(settings)
12 64cd4730 Antony Chazapis
13 64cd4730 Antony Chazapis
if __name__ == "__main__":
14 64cd4730 Antony Chazapis
    main()