From 7140e767a1c314e5c26d6f6d5ed9782dd5f16f03 Mon Sep 17 00:00:00 2001
From: Alvin Xavier Rakha Wardhana <alvin.xavier@ui.ac.id>
Date: Sat, 31 Dec 2022 00:05:13 +0700
Subject: [PATCH] domain

---
 SIREST_B08/settings.py | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/SIREST_B08/settings.py b/SIREST_B08/settings.py
index 0eaad85..8bc1a9e 100644
--- a/SIREST_B08/settings.py
+++ b/SIREST_B08/settings.py
@@ -36,14 +36,10 @@ PRODUCTION = os.getenv('DATABASE_URL') is not None
 # SECURITY WARNING: don't run with debug turned on in production!
 # If you want to enable debugging on Heroku for learning purposes,
 # set this to True.
-DEBUG = not PRODUCTION
+DEBUG = True
 
-HEROKU_APP_NAME = os.getenv('HEROKU_APP_NAME', '')
-
-ALLOWED_HOSTS = [f'{HEROKU_APP_NAME}.herokuapp.com']
-
-if not PRODUCTION:
-    ALLOWED_HOSTS += ['.localhost', '127.0.0.1', '[::1]']
+ALLOWED_HOSTS = ["*"]
+CSRF_TRUSTED_ORIGINS = [f'https://sirest-b08.up.railway.app']
 
 
 # Application definition
-- 
GitLab