manage.py 391 B

12345678910111213
  1. #!/usr/bin/env python
  2. from django.core.management import execute_manager
  3. try:
  4. from . import settings # Assumed to be in the same directory.
  5. except ImportError:
  6. import sys
  7. sys.stderr.write(
  8. "Error: Can't find the file 'settings.py' in the directory "
  9. "containing {0!r}.".format(__file__))
  10. sys.exit(1)
  11. if __name__ == '__main__':
  12. execute_manager(settings)