Update core/config.py
Browse files- core/config.py +2 -2
core/config.py
CHANGED
@@ -2,12 +2,12 @@ import os
|
|
2 |
from pathlib import Path
|
3 |
from dotenv import load_dotenv
|
4 |
from urllib.parse import quote_plus
|
5 |
-
from pydantic_settings
|
6 |
|
7 |
load_dotenv()
|
8 |
|
9 |
|
10 |
-
class Settings(
|
11 |
DATABASE_NAME: str = os.getenv("PG_NAME")
|
12 |
DATABASE_USER: str = os.getenv("PG_USER")
|
13 |
DATABASE_PASSWORD: str = os.getenv("PG_PASSWORD")
|
|
|
2 |
from pathlib import Path
|
3 |
from dotenv import load_dotenv
|
4 |
from urllib.parse import quote_plus
|
5 |
+
from pydantic_settings import BaseSettings
|
6 |
|
7 |
load_dotenv()
|
8 |
|
9 |
|
10 |
+
class Settings(BaseSettings):
|
11 |
DATABASE_NAME: str = os.getenv("PG_NAME")
|
12 |
DATABASE_USER: str = os.getenv("PG_USER")
|
13 |
DATABASE_PASSWORD: str = os.getenv("PG_PASSWORD")
|