I know how to reload a regular Python module within a regular Python interpreter session. This question documents how to do that pretty well:
How do I unload (reload
From the answers of Seti Volkylany and pv
pip install ipython
python manage.py shell
: the symbol at the beginning of a line should now be In [1]:
(in cmd it was >>>
)ipython profile create
Go in ~/.ipython/profile_default/ipython_config.py
and open it in a text editor and add these two lines at the end:
c.InteractiveShellApp.extensions = ['autoreload']
c.InteractiveShellApp.exec_lines = ['%autoreload 2']
You can now run python manage.py shell
, edit your models without having to write %autoreload 2