大网数据广告活动
服务器运维问答

Do i need to run the Django server every time I want to access the website?

· 52CE 我爱测

Specs: AWS EC2 Micro instance Latest Django, Python3, nginx I've just created a Django project in a virtualenv. Everything's mapped out - nginx is catching the URLs and directing them to the correct ports. However, I seem to be l…

问题原文

原帖链接 · Tom Granot · CC BY-SA 3.0

Specs: AWS EC2 Micro instance Latest Django, Python3, nginx

I've just created a Django project in a virtualenv. Everything's mapped out - nginx is catching the URLs and directing them to the correct ports.

However, I seem to be lacking something here: It doesn't make sense to manually run the Django server every time I want to access the site, right?

If I'm asking the wrong question, please let me know.

已采纳解答

原帖链接 · Alexander Kaluzhny · CC BY-SA 3.0

You don't need to manually run the Django application server (wsgi server), but you need it to be running. So you can configure it to run as a service/daemon.

Here is a great picture on the deployment architecture of Django web application The Full Stack Python Guide to Deployments

Hope it helps.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-01-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。