- Add FastAPI service for managing oil delivery services - Implement service scheduling and management endpoints - Add customer service history tracking - Include database models for services, customers, and auto-delivery - Add authentication and authorization middleware - Configure Docker support for local, dev, and prod environments - Add comprehensive .gitignore for Python projects
23 lines
589 B
Python
23 lines
589 B
Python
import os
|
|
|
|
|
|
def load_config(mode=os.environ.get('MODE')):
|
|
try:
|
|
if mode == 'PRODUCTION':
|
|
from settings_prod import ApplicationConfig
|
|
return ApplicationConfig
|
|
|
|
elif mode == 'LOCAL':
|
|
from settings_local import ApplicationConfig
|
|
return ApplicationConfig
|
|
|
|
elif mode == 'DEVELOPMENT':
|
|
from settings_dev import ApplicationConfig
|
|
return ApplicationConfig
|
|
else:
|
|
pass
|
|
|
|
except ImportError:
|
|
from settings_local import ApplicationConfig
|
|
return ApplicationConfig
|