From d5507256227b56ca61d4f6b446fe60b502f4c0b1 Mon Sep 17 00:00:00 2001 From: Piotr Szkudlarek Date: Thu, 14 Mar 2024 23:44:56 +0100 Subject: [PATCH] Configure vercel --- PlanktonDetector/PlanktonDetector/settings.py | 4 ++-- PlanktonDetector/PlanktonDetector/wsgi.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PlanktonDetector/PlanktonDetector/settings.py b/PlanktonDetector/PlanktonDetector/settings.py index bd63305..54ff10f 100644 --- a/PlanktonDetector/PlanktonDetector/settings.py +++ b/PlanktonDetector/PlanktonDetector/settings.py @@ -27,7 +27,7 @@ SECRET_KEY = "django-insecure-r!!7nnmlm1=pzcxzjjm510^ab1yr-h6dc5mly_qu&f7qp3x^69 DEBUG = True -ALLOWED_HOSTS = ["*"] +ALLOWED_HOSTS = ["*", ".vercel.app"] # Application definition @@ -76,7 +76,7 @@ TEMPLATES = [ }, ] -WSGI_APPLICATION = "PlanktonDetector.wsgi.application" +WSGI_APPLICATION = "PlanktonDetector.wsgi.app" # Database diff --git a/PlanktonDetector/PlanktonDetector/wsgi.py b/PlanktonDetector/PlanktonDetector/wsgi.py index 3714123..20ac26e 100644 --- a/PlanktonDetector/PlanktonDetector/wsgi.py +++ b/PlanktonDetector/PlanktonDetector/wsgi.py @@ -13,4 +13,4 @@ from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PlanktonDetector.settings") -application = get_wsgi_application() +app = get_wsgi_application()