diff --git a/Makefile.local b/Makefile.local --- a/Makefile.local +++ b/Makefile.local @@ -59,7 +59,8 @@ python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.production run-gunicorn-server: run-migrations clear-memcached - gunicorn3 -b 127.0.0.1:5004 swh.web.wsgi + DJANGO_SETTINGS_MODULE=swh.web.settings.production \ + gunicorn3 -b 127.0.0.1:5004 'django.core.wsgi:get_wsgi_application()' run-django-webpack-memory-storages: build-webpack-dev run-migrations python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.tests diff --git a/docs/developers-info.rst b/docs/developers-info.rst --- a/docs/developers-info.rst +++ b/docs/developers-info.rst @@ -53,8 +53,6 @@ * :mod:`swh.web.manage`: Django management module for developers. * :mod:`swh.web.urls`: module that holds the whole URI scheme of all the web applications. - * :mod:`swh.web.wsgi`: WSGI module to use when deploying the web applications - in production. * :mod:`swh.web.settings.common`: Common Django settings * :mod:`swh.web.settings.development`: Django settings for development * :mod:`swh.web.settings.production`: Django settings for production diff --git a/swh/web/settings/common.py b/swh/web/settings/common.py --- a/swh/web/settings/common.py +++ b/swh/web/settings/common.py @@ -86,7 +86,6 @@ }, ] -WSGI_APPLICATION = 'swh.web.wsgi.application' DATABASES = { 'default': { diff --git a/swh/web/wsgi.py b/swh/web/wsgi.py deleted file mode 100644 --- a/swh/web/wsgi.py +++ /dev/null @@ -1,12 +0,0 @@ -# Copyright (C) 2017-2018 The Software Heritage developers -# See the AUTHORS file at the top-level directory of this distribution -# License: GNU Affero General Public License version 3, or any later version -# See top-level LICENSE file for more information - -import os - -from django.core.wsgi import get_wsgi_application - -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "swh.web.settings.production") - -application = get_wsgi_application()