Skip to content Skip to sidebar Skip to footer

How Do I Use Unix Commands While A Django Development Server Is Running? (picture Provided)

I was wondering if I could run unix commands without quitting the server. If so, how? I used a Bash script to start the server, and I want to have a Bash script that quits the serv

Solution 1:

You can run the development server in the background as

nohup python manage.py runserver 0.0.0.0:8000 &

and the messages and logs are written in the file nohup.out.

And you can perform any unix commands after the nohup operation at your will. Regarding, the bash script to kill the development server, you can find the pid of the development server and kill it using kill command.

Post a Comment for "How Do I Use Unix Commands While A Django Development Server Is Running? (picture Provided)"