Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 0865558

Browse files
committed
allowing all hosts temporarily
1 parent 03c3c7d commit 0865558

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

backend/backend/settings/production.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from .base import * # noqa
2-
import requests
32

4-
ALLOWED_HOSTS = [] # noqa
3+
# import requests
4+
5+
ALLOWED_HOSTS = ["*"] # noqa
56

67
# https://stackoverflow.com/questions/49828259/when-deploying-django-into-aws-fargate-how-do-you-add-the-local-ip-into-allowed
7-
METADATA_URI = os.environ['ECS_CONTAINER_METADATA_URI'] # noqa
8-
container_metadata = requests.get(METADATA_URI).json()
9-
ALLOWED_HOSTS.append(container_metadata['Networks'][0]['IPv4Addresses'][0])
8+
# METADATA_URI = os.environ['ECS_CONTAINER_METADATA_URI'] # noqa
9+
# container_metadata = requests.get(METADATA_URI).json()
10+
# ALLOWED_HOSTS.append(container_metadata['Networks'][0]['IPv4Addresses'][0])
1011

1112
# Email
1213

0 commit comments

Comments
 (0)