root / manage.py @ 29d840d2
History | View | Annotate | Download (557 Bytes)
1 | c7e0bbe2 | Antony Chazapis | #!/usr/bin/env python
|
---|---|---|---|
2 | c7e0bbe2 | Antony Chazapis | from django.core.management import execute_manager |
3 | c7e0bbe2 | Antony Chazapis | try:
|
4 | c7e0bbe2 | Antony Chazapis | import settings # Assumed to be in the same directory. |
5 | c7e0bbe2 | Antony Chazapis | except ImportError: |
6 | c7e0bbe2 | Antony Chazapis | import sys |
7 | c7e0bbe2 | 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 | c7e0bbe2 | Antony Chazapis | sys.exit(1)
|
9 | c7e0bbe2 | Antony Chazapis | |
10 | c7e0bbe2 | Antony Chazapis | if __name__ == "__main__": |
11 | c7e0bbe2 | Antony Chazapis | execute_manager(settings) |