13 lines
353 B
Python
13 lines
353 B
Python
"""
|
|
Settings initialization.
|
|
This module determines which settings file to use based on environment.
|
|
"""
|
|
import os
|
|
|
|
# Set the environment variable to control which settings file is loaded
|
|
environment = os.environ.get('DJANGO_ENVIRONMENT', 'development')
|
|
|
|
if environment == 'production':
|
|
from .production import *
|
|
else:
|
|
from .development import * |