Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I restart django server that is running in the background?

I run ssh [email protected], change to the django directory for my app and then run ps | aux less. I do not see any processes with python in the command. How do I restart my django server as it is running in the background?

like image 699
jeff Avatar asked Oct 29 '25 10:10

jeff


1 Answers

It depends how you're running the Django server. If you set the Django server to run with Apache, sudo service apache2 restart will do the trick.

If you're running the test server (manage.py runserver), you could use fg to bring the job into the foreground, and tinker with it, but the Django development server automatically detects changes for you (there's no need to restart).

like image 126
David Cain Avatar answered Oct 31 '25 02:10

David Cain



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!