I think using the django provide server should be avoided and Django insists on not using it (https://docs.djangoproject.com/en/2.0/ref/django-admin/#runserver). Maybe adding a uwsgi to this template would be useful.