From ccf08f7721a7ea0a155a17d6e733d894a2a9dd12 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Thu, 12 Nov 2020 12:49:15 +0100
Subject: [PATCH] WSGI_APPLICATION moved to settings.py

---
 debian-files/smasch.py                 | 2 --
 local_settings_ci.py                   | 2 --
 local_settings_ci_sqlite.py            | 2 --
 smash/smash/local_settings.py.template | 2 --
 smash/smash/settings.py                | 2 ++
 5 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/debian-files/smasch.py b/debian-files/smasch.py
index 5a860c1a..8e9b1e70 100644
--- a/debian-files/smasch.py
+++ b/debian-files/smasch.py
@@ -7,8 +7,6 @@ DEBUG = False
 # Should the static/media files be served by Django
 SERVE_STATIC = True
 
-WSGI_APPLICATION = 'smash.wsgi.application'
-
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.sqlite3',
diff --git a/local_settings_ci.py b/local_settings_ci.py
index 498971bd..09caeac7 100644
--- a/local_settings_ci.py
+++ b/local_settings_ci.py
@@ -4,8 +4,6 @@ SECRET_KEY = 'Paste long random string here'  # Insert long random string
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
 
-WSGI_APPLICATION = 'smash.wsgi.application'
-
 # Database
 # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
 
diff --git a/local_settings_ci_sqlite.py b/local_settings_ci_sqlite.py
index 2e98aec1..d0c7dda1 100644
--- a/local_settings_ci_sqlite.py
+++ b/local_settings_ci_sqlite.py
@@ -4,8 +4,6 @@ SECRET_KEY = 'Paste long random string here'  # Insert long random string
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
 
-WSGI_APPLICATION = 'smash.wsgi.application'
-
 # Database
 # https://docs.djangoproject.com/en/1.10/ref/settings/#databases
 
diff --git a/smash/smash/local_settings.py.template b/smash/smash/local_settings.py.template
index dbbf01a3..8fb9f31d 100644
--- a/smash/smash/local_settings.py.template
+++ b/smash/smash/local_settings.py.template
@@ -4,8 +4,6 @@ SECRET_KEY = 'Paste long random string here'  # Insert long random string
 # SECURITY WARNING: don't run with debug turned on in production!
 DEBUG = True
 
-WSGI_APPLICATION = 'smash.wsgi.application'
-
 IMPORTER_USER = 'admin' #username
 
 EMAIL_USE_TLS = False
diff --git a/smash/smash/settings.py b/smash/smash/settings.py
index edaaa38a..15be4ea9 100644
--- a/smash/smash/settings.py
+++ b/smash/smash/settings.py
@@ -20,6 +20,8 @@ PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
 
 DEBUG = True
 
+WSGI_APPLICATION = 'smash.wsgi.application'
+
 SERVE_STATIC = False
 
 # Application definition
-- 
GitLab