fix [P-284]: настройки обновления тестирования в админке

This commit is contained in:
Nukeap committed 2025-08-07 10:12:41 +03:00
1 parent 0413314325
commit 580c953e7b
2 files changed
+4 -7

No files matched your search

+3 -6
View File
@@ -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",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "front",
"version": "1.2.1",
"version": "1.2.2",
"type": "module",
"scripts": {
"dev": "vite",