Do I need to restart apache each time after changing code

apache, django, pycharm

Solution

If you are using modpython yes, you have to reload apache every time or your modules will not be reloaded.

If you are using apache and mod_wsgi then touching the wsgi module is enough.

As other already suggested nginx + gunicorn (or better nginx + uwsgi) are better options than apache + mod_python to serve your django app.

Problem

I am deploying a Django app on webfaction. All code are uploaded, but sometimes there are still some modification I need to make. My workflow is edit local file in Pycharm and sync the change to remote server (Apache). So, for example, do I need to restart apache every time after changing views.py for the change to take effects?

Original source