mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 17:11:09 -05:00
refactor: Remove unused environ import and environment file reading from Django settings
This commit is contained in:
@@ -3,7 +3,6 @@ Base Django settings for thrillwiki project.
|
|||||||
Common settings shared across all environments.
|
Common settings shared across all environments.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import environ
|
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from decouple import config
|
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:
|
if apps_dir.exists() and str(apps_dir) not in sys.path:
|
||||||
sys.path.insert(0, str(apps_dir))
|
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!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = config('SECRET_KEY')
|
SECRET_KEY = config('SECRET_KEY')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user