Testys commited on
Commit
f1fbb28
1 Parent(s): e1c6d87

Update core/config.py

Browse files
Files changed (1) hide show
  1. 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.base import BaseSettingsModel
6
 
7
  load_dotenv()
8
 
9
 
10
- class Settings(BaseSettingsModel):
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")