refactor: Remove unused environ import and environment file reading from Django settings

This commit is contained in:
pacnpal
2025-08-26 15:22:29 -04:00
parent b627aed65d
commit 133dcabb58

View File

@@ -3,7 +3,6 @@ Base Django settings for thrillwiki project.
Common settings shared across all environments.
"""
import environ
import sys
from pathlib import Path
from decouple import config
@@ -38,9 +37,6 @@ apps_dir = BASE_DIR / "apps"
if apps_dir.exists() and str(apps_dir) not in sys.path:
sys.path.insert(0, str(apps_dir))
# Read environment file if it exists
environ.Env.read_env(BASE_DIR / ".env")
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = config('SECRET_KEY')