Fix os import and add media settings 6
This commit is contained in:
@@ -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", # Сразу добавь на будущее
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user