runserver must be restarted after error in admin.py
|Reported by:||Carl Meyer||Owned by:||Brian Rosner|
|Cc:||Gabriel Hurley||Triage Stage:||Accepted|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In most cases, runserver is able to pick up changes to files and restart itself automatically. However, if there is an error importing an admin.py file, then the error is fixed and the file saved, A) the dev server does not automatically restart, and B) while the admin will load, the app whose admin.py previously contained an error will be missing from the admin. The dev server must be manually restarted before the app will appear again in the admin.
FWIW, while this seems pretty minor, I'm currently teaching a beginning Django class, and this particular bug caused more confusion during the tutorial (part 2, of course) than any other single issue.
Change History (17)
comment:8 Changed 7 years ago by
|Owner:||changed from nobody to Brian Rosner|
|Status:||reopened → new|
|Triage Stage:||Unreviewed → Accepted|