We are currently using runserver on both test and production (see docker-entrypoint.sh). It appears we should not be. In fact, the official docs say:
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.)
Others agree.
So, it seems like we need to run with Gunicorn or Apache. See: https://docs.djangoproject.com/en/4.2/howto/deployment/
We want to keep our test and production environments simple and similar but we are running into some major latency issues (#959) that we need to address
We are currently using
runserveron both test and production (see docker-entrypoint.sh). It appears we should not be. In fact, the official docs say:Others agree.
So, it seems like we need to run with Gunicorn or Apache. See: https://docs.djangoproject.com/en/4.2/howto/deployment/
We want to keep our test and production environments simple and similar but we are running into some major latency issues (#959) that we need to address