gunicorn and django project (no app)

試著忘記壹切 提交于 2019-12-08 06:45:27

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/5375861/gunicorn-and-django-project-no-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!