fix [P-284]: настройки обновления тестирования в админке
This commit is contained in:
1 parent
0413314325
commit
580c953e7b
2 files changed
+4
-7
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user