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