Template repository for Django applications
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
655B

  1. #!/usr/bin/env python
  2. # coding=utf-8
  3. """Django's command-line utility for administrative tasks."""
  4. import os
  5. import sys
  6. def main():
  7. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'chaos_dating_project.settings')
  8. try:
  9. from django.core.management import execute_from_command_line
  10. except ImportError as exc:
  11. raise ImportError(
  12. "Couldn't import Django. Are you sure it's installed and "
  13. "available on your PYTHONPATH environment variable? Did you "
  14. "forget to activate a virtual environment?"
  15. ) from exc
  16. execute_from_command_line(sys.argv)
  17. if __name__ == '__main__':
  18. main()