Skip to content

Commit

Permalink
I realize that I may want to ssh into the prod host and curl the api.…
Browse files Browse the repository at this point in the history
… Will be useful to have localhost and 127.0.0.1 in ALLOWED_HOSTS in any env.
  • Loading branch information
joshSzep committed Jul 22, 2024
1 parent 8c23356 commit f2c0623
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions hangul_tutor/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,13 @@
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_HSTS_PRELOAD = True if IS_NOT_DEBUG else False

# 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] = [
"hangultypingtutor.com",
"hangul-typing-tutor.onrender.com",
"localhost",
"127.0.0.1",
]

if DEBUG:
ALLOWED_HOSTS.extend(
[
"localhost",
"127.0.0.1",
]
)

# Application definition
INSTALLED_APPS = [
"django.contrib.admin",
Expand Down

0 comments on commit f2c0623

Please sign in to comment.