manage.py 453 B

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