We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a5057 commit e69ece6Copy full SHA for e69ece6
src/app/core/config.py
@@ -1,8 +1,11 @@
1
from enum import Enum
2
3
-from decouple import config
+#from decouple import config
4
+from starlette.config import Config
5
from pydantic_settings import BaseSettings
6
7
+config = Config(".env")
8
+
9
class AppSettings(BaseSettings):
10
APP_NAME: str = config("APP_NAME", default="FastAPI app")
11
APP_DESCRIPTION: str | None = config("APP_DESCRIPTION", default=None)
src/pyproject.toml
@@ -24,7 +24,6 @@ passlib = "^1.7.4"
24
SQLAlchemy = "^2.0.21"
25
pytest = "^7.4.2"
26
python-multipart = "^0.0.6"
27
-python-decouple = "^3.8"
28
greenlet = "^2.0.2"
29
httpx = "^0.25.0"
30
pydantic-settings = "^2.0.3"
0 commit comments