Fix os import and add media settings 6

This commit is contained in:
ack
2026-01-21 05:02:13 +03:00
parent 155c0d8436
commit 31423d168d
10 changed files with 87 additions and 19 deletions

View File

@@ -80,12 +80,6 @@ DATABASES = {
}
}
# добавил от жемени из за нжинкса
CSRF_TRUSTED_ORIGINS = [
"http://192.168.1.57:8080",
"https://shop.tertelius.space", # Сразу добавь на будущее
]
# Password validation
# https://docs.djangoproject.com/en/5.2/ref/settings/#auth-password-validators
@@ -109,9 +103,11 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/5.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
# LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'ru-ru'
TIME_ZONE = 'UTC'
# TIME_ZONE = 'UTC'
TIME_ZONE = 'Europe/Moscow'
USE_I18N = True
@@ -132,3 +128,10 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# https://docs.djangoproject.com/en/5.2/ref/settings/#default-auto-field
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
# добавил от жемени из за нжинкса
CSRF_TRUSTED_ORIGINS = [
"http://192.168.1.57:8080",
"https://shop.tertelius.space", # Сразу добавь на будущее
]