Skip to content

Commit

Permalink
Try to set the allowed_hosts and the port
Browse files Browse the repository at this point in the history
  • Loading branch information
joshSzep committed Jul 13, 2024
1 parent a17e3d3 commit 2172a00
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions hangul_tutor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/5.0/ref/settings/
"""

import os
from pathlib import Path


Expand All @@ -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

Expand Down

0 comments on commit 2172a00

Please sign in to comment.