diff --git a/hangul_tutor/settings.py b/hangul_tutor/settings.py index c53a441..6b5328a 100644 --- a/hangul_tutor/settings.py +++ b/hangul_tutor/settings.py @@ -10,6 +10,7 @@ https://docs.djangoproject.com/en/5.0/ref/settings/ """ +import os from pathlib import Path @@ -26,10 +27,15 @@ # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS: list[str] = [ - "hangul-tutor.onrender.com", -] +# SECURITY WARNING: update this when you have the production host +# allowed hosts should be set to the domain name of the production host +# or a list of domain names that the application will be served from +# for example: ALLOWED_HOSTS = ['hangul-tutor.com'] +# or: ALLOWED_HOSTS = ['hangul-tutor.com', 'www.hangul-tutor.com'] +# or: ALLOWED_HOSTS = ['*'] to allow all hosts +ALLOWED_HOSTS: list[str] = ["*"] +PORT = os.getenv("PORT", "1000") # Application definition