diff options
Diffstat (limited to 'vms/test_django/manage.py')
-rwxr-xr-x | vms/test_django/manage.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vms/test_django/manage.py b/vms/test_django/manage.py new file mode 100755 index 0000000..3908dee --- /dev/null +++ b/vms/test_django/manage.py | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/nix/store/f87w21b91cws0wbsvyfn5vnlyv491czi-python3-3.8.3/bin/python | ||
2 | """Django's command-line utility for administrative tasks.""" | ||
3 | import os | ||
4 | import sys | ||
5 | |||
6 | |||
7 | def main(): | ||
8 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_django.settings') | ||
9 | try: | ||
10 | from django.core.management import execute_from_command_line | ||
11 | except ImportError as exc: | ||
12 | raise ImportError( | ||
13 | "Couldn't import Django. Are you sure it's installed and " | ||
14 | "available on your PYTHONPATH environment variable? Did you " | ||
15 | "forget to activate a virtual environment?" | ||
16 | ) from exc | ||
17 | execute_from_command_line(sys.argv) | ||
18 | |||
19 | |||
20 | if __name__ == '__main__': | ||
21 | main() | ||