mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 22:11:12 -05:00
Refactor code structure and remove redundant changes
This commit is contained in:
17
django-backend/config/settings/__init__.py
Normal file
17
django-backend/config/settings/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
Django settings package.
|
||||
Automatically loads the correct settings based on DJANGO_SETTINGS_MODULE environment variable.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
# Determine which settings to use
|
||||
settings_module = os.getenv('DJANGO_SETTINGS_MODULE', 'config.settings.local')
|
||||
|
||||
if settings_module == 'config.settings.production':
|
||||
from .production import *
|
||||
elif settings_module == 'config.settings.local':
|
||||
from .local import *
|
||||
else:
|
||||
# Default to local for development
|
||||
from .local import *
|
||||
Reference in New Issue
Block a user