mod: все переменные .env читаются из оружения.
All checks were successful
Build and Push PetClones-site / build-and-push (push) Successful in 1m4s
All checks were successful
Build and Push PetClones-site / build-and-push (push) Successful in 1m4s
This commit is contained in:
@@ -14,12 +14,6 @@ https://docs.djangoproject.com/en/5.0/ref/settings/
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Загружаем переменные окружения из .env файла
|
||||
# Ищем .env в корне проекта (на уровень выше BASE_DIR)
|
||||
from dotenv import load_dotenv
|
||||
env_path = Path(__file__).resolve().parent.parent.parent / '.env'
|
||||
load_dotenv(env_path)
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user