问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
