Working on user, backend.

This commit is contained in:
charles-gauthereau
2024-10-27 11:51:53 +01:00
parent 1069b2c3ad
commit b62261896b
28 changed files with 7351 additions and 3383 deletions
+16
View File
@@ -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()