MCPcopy Create free account
hub / github.com/vercel/examples / main

Function main

python/django-notes/manage.py:18–29  ·  view source on GitHub ↗

Run administrative tasks.

()

Source from the content-addressed store, hash-verified

16
17
18def main():
19 """Run administrative tasks."""
20 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings")
21 try:
22 from django.core.management import execute_from_command_line
23 except ImportError as exc:
24 raise ImportError(
25 "Couldn't import Django. Are you sure it's installed and "
26 "available on your PYTHONPATH environment variable? Did you "
27 "forget to activate a virtual environment?"
28 ) from exc
29 execute_from_command_line(sys.argv)
30
31
32if __name__ == "__main__":

Callers 1

manage.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected