mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Working on user, backend.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user