From 046755d98788f356a8f32683523835f948be4cb1 Mon Sep 17 00:00:00 2001 From: Fred Pauchet Date: Fri, 8 Oct 2021 22:04:44 +0200 Subject: [PATCH] Make it work on Heroku Add gunicorn as requirements Change khana.settings to config.settings --- config/wsgi.py | 2 +- pytest.ini | 4 ++-- requirements/base.txt | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/wsgi.py b/config/wsgi.py index 3e1432f..b5e288f 100644 --- a/config/wsgi.py +++ b/config/wsgi.py @@ -11,6 +11,6 @@ import os from django.core.wsgi import get_wsgi_application -os.environ.setdefault("DJANGO_SETTINGS_MODULE", "khana.settings") +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") application = get_wsgi_application() diff --git a/pytest.ini b/pytest.ini index 8bc9a33..8f47fb8 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,4 +1,4 @@ [pytest] -DJANGO_SETTINGS_MODULE = khana.settings +DJANGO_SETTINGS_MODULE = config.settings -python_files = tests.py test_*.py *_tests.py \ No newline at end of file +python_files = tests.py test_*.py *_tests.py diff --git a/requirements/base.txt b/requirements/base.txt index 6ae75b7..b73e3ad 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -9,3 +9,5 @@ Markdown==3.3.4 reportlab==3.5.67 simplejson==3.17.2 Sphinx==3.5.4 + +gunicorn