How To Reload Django Models Without Losing My Locals In An Interactive Session?
I'm doing some research with an interactive shell and using a Django app (shell_plus) for storing data and browsing it using the convenient admin. Occasionally I add or change some
Solution 1:
You can use this snippet to rebuild the AppCache. Do not forget to remove all *.pyc files if any by using something like:
find . -name "*.pyc" -execrm {} \;
Otherwise the reload() will ignore your changes in your models.py file.
Post a Comment for "How To Reload Django Models Without Losing My Locals In An Interactive Session?"