#23621: Module autoreloading doesn't work due to some checks while loading an app -------------------------------+-------------------------------------- Reporter: pashinin | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 1.7 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by dfunckt): FWIW, this also happens in regular shell, using the builtin `reload`: {{{ >>> from myproject.myapp import models as mymodels >>> mymodels.Person.objects.get(pk=5) <Person 0x123456789> # Edit myproject/myapp/models.py >>> reload(mymodels) Exception... }}} I believe this regression is unfortunate, since it is quite useful to be able to play-edit-play with your app's models, but I can understand the complexity of trying to fix it given the App refactoring in 1.7. -- Ticket URL: <https://code.djangoproject.com/ticket/23621#comment:8> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.cae12d87641c7265a10f1a29fcbe2efe%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.