1
0
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:
Ryan Hiebert
2015-04-30 10:54:45 -05:00
committed by Tim Graham
parent 1743efbe62
commit 617eff41ac
4 changed files with 28 additions and 1 deletions

9
django/__main__.py Normal file
View 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()