Should I use django-gunicorn integration or wsgi?

后端 未结 1 1370
深忆病人
深忆病人 2021-01-18 11:46

I am setting up a web server with gunicorn + django. There are two deployment options: either use regular WSGI, or use gunicorn\'s django-integration. I\'m tempted to use

相关标签:
1条回答
  • 2021-01-18 12:00

    Starting with Django 1.4, your project will already have a wsgi.py, which can be used with any wsgi server (of which there are many, gunicorn being just one).

    Essentially the old Django integration for gunicorn was just a convenience to get you up and running faster, but it's no longer necessary because all Django projects now have wsgi.py

    0 讨论(0)
提交回复
热议问题