Django server killed frequently

前端 未结 1 1514
孤独总比滥情好
孤独总比滥情好 2020-11-27 23:41

I\'m developing a Django project and testing it on a dedicated server. The project is running on:

  • django 1.9.6
  • virtualenv
  • python 2.7
相关标签:
1条回答
  • 2020-11-28 00:25

    From the documentation on the django development server https://docs.djangoproject.com/en/1.10/ref/django-admin/

    DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through security audits or performance tests. (And that’s how it’s gonna stay. We’re in the business of making Web frameworks, not Web servers, so improving this server to be able to handle a production environment is outside the scope of Django.)

    Of course it get's killed frequently, it's not designed to be kept running for long hours. Set up one of the standard solutions such as gunicorn+nginx or apache+uswgi etc.

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