I love how django server auto-reloads itself on code change, so that no restarting the server is required.
We currently use django custom management commands that may take a very long time to complete.
Is there any way we can use the auto-reloading feature of the django server for our management command?
For example, if the change of the underlying django codebase is detected, the command reloads itself and resumes execution of the very long (stateless) loop.
autoreload.main()
is gone now as of github.com/django/django/commit/… – Hexad