Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run Python server without command prompt

Tags:

python

django

I'm developing some Python project with Django. When we render the Python/Django application, we need to open the command prompt and type in python manage.py runserver. That's ok on for the development server. But for production, it looks funny. Is there anyway to run the Python/Django project without opening the command prompt?

like image 928
PPShein Avatar asked Nov 23 '25 12:11

PPShein


2 Answers

The deployment section of the documentation details steps to configure servers to run django in production.

runserver is to be used strictly for development and should never be used in production.

like image 175
Burhan Khalid Avatar answered Nov 25 '25 03:11

Burhan Khalid


You run the runserver command only when you develop. After you deploy, the client does not need to run python manage.py runserver command. Calling the url will execute the required view. So it need not be a concern

like image 29
Aswin Murugesh Avatar answered Nov 25 '25 02:11

Aswin Murugesh