Gunicorn 和 django 项目(无应用程序)
我有一个 django 项目,我想用gunicorn/nginx 部署它。 但我直接使用settings.py urls.py views.py而不启动django应用程序,并且gunicorn需要应用程序名称。
如何部署没有应用程序的 django 项目。
I have a django project, and I want to deploy it with gunicorn/nginx.
But I use settings.py urls.py views.py directly without start a django app, and gunicorn needs application name.
How can I deploy a django project which has no app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用gunicorn_django 命令不需要应用程序名称。只需在 projetc 文件夹中运行 Gunicorn_django 命令或告诉他设置的路径
http://gunicorn.org/ run.html#gunicorn-django
You don't need an application name with gunicorn_django command. just run gunicorn_django command in your projetc folder or tel him the path of settings
http://gunicorn.org/run.html#gunicorn-django