forgot one
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
a7016b87be61734f84aeeeffc054c0cba60ceff8- Parents
-
58a4754 - Tree
b1eb25a
a7016b8
a7016b87be61734f84aeeeffc054c0cba60ceff858a4754
b1eb25a| Status | File | + | - |
|---|---|---|---|
| A |
backend/manage.py
|
22 | 0 |
backend/manage.pyadded@@ -0,0 +1,22 @@ | ||
| 1 | +#!/usr/bin/env python | |
| 2 | +"""Django's command-line utility for administrative tasks.""" | |
| 3 | +import os | |
| 4 | +import sys | |
| 5 | + | |
| 6 | + | |
| 7 | +def main(): | |
| 8 | + """Run administrative tasks.""" | |
| 9 | + os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jubjub.settings') | |
| 10 | + try: | |
| 11 | + from django.core.management import execute_from_command_line | |
| 12 | + except ImportError as exc: | |
| 13 | + raise ImportError( | |
| 14 | + "Couldn't import Django. Are you sure it's installed and " | |
| 15 | + "available on your PYTHONPATH environment variable? Did you " | |
| 16 | + "forget to activate a virtual environment?" | |
| 17 | + ) from exc | |
| 18 | + execute_from_command_line(sys.argv) | |
| 19 | + | |
| 20 | + | |
| 21 | +if __name__ == '__main__': | |
| 22 | + main() | |