2👍
Older versions of django
find . -name "*.pyc" -exec rm -rf {} \;
New version of django has this:
python manage.py clean_pyc
If you simply want to restart the webserver it depends on the configuration you are using:
-
via gunicorn:
use--reload
option -
via django inbuilt runserver:
since version 1.7 it automatically does that.
1👍
Just touch the WSGI file: touch wsgi.py
and your project should refresh.
Please have a look at this similar request: How to reload new update in Django project with Apache, mod_wsgi?
Source:stackexchange.com