Configure vercel

This commit is contained in:
Piotr Szkudlarek 2024-03-14 23:44:56 +01:00
parent c42dfd0cd2
commit d550725622
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ SECRET_KEY = "django-insecure-r!!7nnmlm1=pzcxzjjm510^ab1yr-h6dc5mly_qu&f7qp3x^69
DEBUG = True DEBUG = True
ALLOWED_HOSTS = ["*"] ALLOWED_HOSTS = ["*", ".vercel.app"]
# Application definition # Application definition
@ -76,7 +76,7 @@ TEMPLATES = [
}, },
] ]
WSGI_APPLICATION = "PlanktonDetector.wsgi.application" WSGI_APPLICATION = "PlanktonDetector.wsgi.app"
# Database # Database

View File

@ -13,4 +13,4 @@ from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PlanktonDetector.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PlanktonDetector.settings")
application = get_wsgi_application() app = get_wsgi_application()