Restart Django or httpd server

In the django framework, When changes occur in urls.py or model.py or views.py. We will restart httpd.

But, as the documentation says, we can restart the servers to get the latest changes.

What is the best effective way to accomplish the above

+5
source share
4 answers

runerver.py restarts automatically every time you modify any .py file, but when you use apache you need to restart the process manually.

+4
source

touch your_project_name.wsgi - . , django .

+3

runserverrefers to the development server that is distributed with Django. Restarting this or your httpd is the same thing, in both cases you are restarting the web server. If you use apache, you are not using the development server, which is startet on runserver.py.

0
source

Enter fginto the terminal to get started, and then enter Ctr+cto stop the server, and then run

Python manage.py runserver 
0
source

All Articles