mirror of
https://github.com/Hopiu/django.git
synced 2026-03-17 14:30:24 +00:00
django.utils.autoreload.get_child_arguments() detected when Python was started with the `-m` option only for `django` module. This commit changes the logic to check __spec__, see https://docs.python.org/3/reference/import.html#main-spec Now packages can implement their own __main__ with the runserver command. |
||
|---|---|---|
| .. | ||
| child_module | ||
| __init__.py | ||
| __main__.py | ||
| another_bad_module.py | ||
| another_good_module.py | ||
| bad_module.py | ||
| good_module.py | ||