Skip to content

Commit

Permalink
Update pydantic
Browse files Browse the repository at this point in the history
  • Loading branch information
annndruha committed Jul 14, 2023
1 parent 9a08c88 commit c901f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rating_api/settings.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import os
from functools import lru_cache

from pydantic import BaseSettings, PostgresDsn
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
"""Application settings"""

DB_DSN: PostgresDsn = 'postgresql://postgres@localhost:5432/postgres'
DB_DSN: str = 'postgresql://postgres@localhost:5432/postgres'
ROOT_PATH: str = '/' + os.getenv("APP_NAME", "")

CORS_ALLOW_ORIGINS: list[str] = ['*']
Expand Down

0 comments on commit c901f16

Please sign in to comment.