MCPcopy
hub / github.com/twtrubiks/docker-tutorial / main

Function main

api/manage.py:7–18  ·  view source on GitHub ↗

Run administrative tasks.

()

Source from the content-addressed store, hash-verified

5
6
7def main():
8 """Run administrative tasks."""
9 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_rest_framework_tutorial.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
21if __name__ == '__main__':

Callers 1

manage.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected