manage.py 429 B

1234567891011121314
  1. #!/usr/bin/env python
  2. import os
  3. import sys
  4. if __name__ == "__main__":
  5. # Making sure we can import each app
  6. PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__))
  7. sys.path.append(os.path.join(PROJECT_ROOT, 'karmaworld/apps'))
  8. os.environ.setdefault("DJANGO_SETTINGS_MODULE", "karmaworld.settings.prod")
  9. from django.core.management import execute_from_command_line
  10. execute_from_command_line(sys.argv)