mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Fixed #24857 -- Added "python -m django" entry point.
This commit is contained in:
9
django/__main__.py
Normal file
9
django/__main__.py
Normal file
@@ -0,0 +1,9 @@
|
||||
"""
|
||||
Invokes django-admin when the django module is run as a script.
|
||||
|
||||
Example: python -m django check
|
||||
"""
|
||||
from django.core import management
|
||||
|
||||
if __name__ == "__main__":
|
||||
management.execute_from_command_line()
|
||||
Reference in New Issue
Block a user