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.

manage.py 429 B

12 years ago
12 years ago
12 years ago
12345678910111213
  1. #!/usr/bin/env python
  2. import os
  3. import sys
  4. if __name__ == "__main__":
  5. if not any(arg.startswith("--settings") for arg in sys.argv):
  6. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pinry.settings.development")
  7. from django.core.management import execute_from_command_line
  8. if 'test' in sys.argv:
  9. from django.conf import settings
  10. settings.IS_TEST = True
  11. execute_from_command_line(sys.argv)