From 580c953e7b3839a4a24a31cd890fb9d9bb84cf37 Mon Sep 17 00:00:00 2001 From: Nukeap Date: Thu, 7 Aug 2025 10:12:41 +0300 Subject: [PATCH] =?UTF-8?q?fix=20[P-284]:=20=D0=BD=D0=B0=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B9=D0=BA=D0=B8=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D1=82=D0=B5=D1=81=D1=82=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B2=20=D0=B0=D0=B4?= =?UTF-8?q?=D0=BC=D0=B8=D0=BD=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/back/portal/settings.py | 9 +++------ src/front/package.json | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/back/portal/settings.py b/src/back/portal/settings.py index d6f78a23e..061b92da4 100644 --- a/src/back/portal/settings.py +++ b/src/back/portal/settings.py @@ -13,6 +13,7 @@ https://docs.djangoproject.com/en/4.2/ref/settings/ from pathlib import Path import os +DATA_UPLOAD_MAX_NUMBER_FIELDS=100000 CORS_ORIGIN_ALLOW_ALL=True # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent @@ -37,12 +38,8 @@ SWAGGER_SETTINGS = { } } } -CSRF_TRUSTED_ORIGINS = [ - 'http://localhost', - 'http://127.0.0.1', - 'http://yourdomain.com', # Add your production domain here -] -ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','0.0.0.0'] +ALLOWED_HOSTS = str(os.getenv('DJANGO_ALLOWED_HOSTS')).split(', ') +CSRF_TRUSTED_ORIGINS = str(os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS')).split(', ') CHANNEL_LAYERS = { "default": { "BACKEND": "channels_redis.core.RedisChannelLayer", diff --git a/src/front/package.json b/src/front/package.json index 3ccc2fcc8..939fc18e3 100644 --- a/src/front/package.json +++ b/src/front/package.json @@ -1,6 +1,6 @@ { "name": "front", - "version": "1.2.1", + "version": "1.2.2", "type": "module", "scripts": { "dev": "vite",