Add pydantic-settings package to requirements.txt
This commit is contained in:
parent
a9c71e9245
commit
5a8adf1d9c
1
__init__.py
Normal file
1
__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
# Make this directory a Python package to help with imports
|
@ -11,6 +11,7 @@ from alembic import context
|
|||||||
# Add the project root directory to Python's path
|
# Add the project root directory to Python's path
|
||||||
BASE_DIR = Path(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
BASE_DIR = Path(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
sys.path.append(str(BASE_DIR))
|
sys.path.append(str(BASE_DIR))
|
||||||
|
sys.path.insert(0, str(BASE_DIR)) # Make sure the project root is first in path
|
||||||
|
|
||||||
# this is the Alembic Config object, which provides
|
# this is the Alembic Config object, which provides
|
||||||
# access to the values within the .ini file in use.
|
# access to the values within the .ini file in use.
|
||||||
|
8
main.py
8
main.py
@ -1,7 +1,13 @@
|
|||||||
|
import sys
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
import uvicorn
|
import uvicorn
|
||||||
from pathlib import Path
|
|
||||||
|
# Add the project root to the Python path
|
||||||
|
BASE_DIR = Path(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
sys.path.insert(0, str(BASE_DIR))
|
||||||
|
|
||||||
from app.api.routes import router as api_router
|
from app.api.routes import router as api_router
|
||||||
from app.core.config import settings
|
from app.core.config import settings
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
fastapi>=0.95.0
|
fastapi>=0.95.0
|
||||||
uvicorn>=0.22.0
|
uvicorn>=0.22.0
|
||||||
pydantic>=2.0.0
|
pydantic>=2.0.0
|
||||||
|
pydantic-settings>=2.0.0
|
||||||
sqlalchemy>=2.0.0
|
sqlalchemy>=2.0.0
|
||||||
alembic>=1.11.0
|
alembic>=1.11.0
|
||||||
python-dotenv>=1.0.0
|
python-dotenv>=1.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user