Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django restart server or httpd

In django framework,When there are changes in urls.py or model.py or views.py .We would restart httpd.

But as the documentation says we could restart runserver to get the latest changes.

Which is the best efficient way for doing the above

like image 908
Rajeev Avatar asked Sep 18 '10 17:09

Rajeev


People also ask

How do I restart a Django project?

Run python manage.py syncdb to create the restart model.

Is Django a HTTP server?

Django is an extremely popular and fully featured server-side web framework, written in Python. This module shows you why Django is one of the most popular web server frameworks, how to set up a development environment, and how to start using it to create your own web applications.


1 Answers

runserver.py restarts automatically every time you modify any .py file, but when you are using apache you have to restart the proccess manually.

like image 68
juanefren Avatar answered Sep 19 '22 01:09

juanefren