<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/utils_tests/test_module/__main__.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2021-01-05T20:03:29Z</updated>
<entry>
<title>Fixed #32314 -- Fixed detection when started non-django modules with "python -m" in autoreloader.</title>
<updated>2021-01-05T20:03:29Z</updated>
<author>
<name>William Schwartz</name>
<email>wkschwartz@gmail.com</email>
</author>
<published>2021-01-04T14:50:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=ec6d2531c59466924b645f314ac33f54470d7ac3'/>
<id>urn:sha1:ec6d2531c59466924b645f314ac33f54470d7ac3</id>
<content type='text'>
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.
</content>
</entry>
</feed>
