mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
17 lines
311 B
Python
17 lines
311 B
Python
import os
|
|
from functools import lru_cache
|
|
|
|
from settings.development import DevSettings
|
|
from settings.production import ProdSettings
|
|
|
|
|
|
@lru_cache
|
|
def get_settings():
|
|
if os.getenv("ENVIRONMENT") == "development":
|
|
return DevSettings()
|
|
else:
|
|
return ProdSettings()
|
|
|
|
|
|
config = get_settings()
|