From eaaf90f735ba10c8623f8e5d69d262f7c56d6c51 Mon Sep 17 00:00:00 2001 From: tpstudy Date: Thu, 10 Oct 2024 23:37:37 +0800 Subject: [PATCH] Update settings for CSRF and allowed hosts --- core/settings.py | 6 +++--- db.sqlite3 | Bin 131072 -> 131072 bytes 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/settings.py b/core/settings.py index 9f0292e0..0ad7c7d4 100644 --- a/core/settings.py +++ b/core/settings.py @@ -28,13 +28,13 @@ SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', get_random_secret_key()) # Enable/Disable DEBUG Mode -DEBUG = os.environ.get('DJANGO_DEBUG', 'True') == 'True' +DEBUG = False # Docker HOST -ALLOWED_HOSTS = ['*'] +ALLOWED_HOSTS = ['adminlte-fmd6h0akefftarcq.canadacentral-01.azurewebsites.net', 'localhost', '127.0.0.1'] # Add here your deployment HOSTS -CSRF_TRUSTED_ORIGINS = ['http://localhost:8000', 'http://localhost:5085', 'http://127.0.0.1:8000', 'http://127.0.0.1:5085'] +CSRF_TRUSTED_ORIGINS = ['https://adminlte-fmd6h0akefftarcq.canadacentral-01.azurewebsites.net'] #Render Context RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME') diff --git a/db.sqlite3 b/db.sqlite3 index fdaf782ec6c2662c1151d552b3380ae2b6908024..3d2b471545dd3eb9a79a0ecc2d60187b9f69ce26 100644 GIT binary patch delta 400 zcmajbJx;<<007|N#DZa0BXKY3YhQmikn#_eV$08hr9f%RgF;()Wr4&C;N<2JB!)z9 z;2jK;p2CHwn{FQ9TfX%=x?V>&Cy~S5>1E{bbkjt~j7S2Jp_7o}0L$%OQU2m6_PmR4 z9%HKsrh_i+bn(=~ril^Pqrk*mGCuY=hA}|0U&NZ7apZ-aQq%p8l^cz*ZH--H(Vdl- zEx91|OU}Z@J!q*Ze?nIXek370yVmAcb;fNq3pLFZ_^PR}4A;uc$sD_M%g7I*5^BUs zNe38@mtJQE2e7BfHfV%_%vMnt>h)4@Y6>29Cdf?<<*ZTa2XnPiM2aae^P8mSCB~whhPAycEJGR5BeGaoZ#4@Y8HDcKM z1Zf2UFAlnv08^+-(-tk0F3#ajsAvf@#CVaG1J*Feo>rfEimOpK5{#$H02_kXZ6Mde zlr~bcgVW1L>-3aw=TW>^MG6_UshPO4FuSwC-p*&wH>r2(dK?M!xk>9MSec6%R zsF$Wt605URXhf0-eX=PvZNwTgfgSn+aU#b3bj{pDw