mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 12:51:16 -05:00
18 lines
480 B
Python
18 lines
480 B
Python
"""
|
|
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 *
|