Make it work on Heroku

Add gunicorn as requirements
Change khana.settings to config.settings
This commit is contained in:
Fred Pauchet 2021-10-08 22:04:44 +02:00
parent 54695787de
commit 046755d987
3 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -1,4 +1,4 @@
[pytest]
DJANGO_SETTINGS_MODULE = khana.settings
DJANGO_SETTINGS_MODULE = config.settings
python_files = tests.py test_*.py *_tests.py
python_files = tests.py test_*.py *_tests.py

View File

@ -9,3 +9,5 @@ Markdown==3.3.4
reportlab==3.5.67
simplejson==3.17.2
Sphinx==3.5.4
gunicorn