main #1

Open
nathanb wants to merge 9 commits from nathanb/sasa-membership:main into main
4 changed files with 15 additions and 8 deletions
Showing only changes of commit 1a0b4dc25d - Show all commits
+1
View File
@@ -6,6 +6,7 @@ __pycache__/
.Python
env/
venv/
.venv/
ENV/
build/
develop-eggs/
+12 -5
View File
@@ -1,6 +1,11 @@
from pydantic_settings import BaseSettings
from pathlib import Path
from typing import List
import os
from pydantic_settings import BaseSettings, SettingsConfigDict
PROJECT_ROOT = Path(__file__).resolve().parents[3]
BACKEND_ROOT = Path(__file__).resolve().parents[2]
class Settings(BaseSettings):
@@ -47,9 +52,11 @@ class Settings(BaseSettings):
UPLOAD_DIR: str = "/app/uploads"
MAX_UPLOAD_SIZE: int = 10485760 # 10MB
class Config:
env_file = ".env"
case_sensitive = True
model_config = SettingsConfigDict(
env_file=(PROJECT_ROOT / ".env", BACKEND_ROOT / ".env", ".env"),
case_sensitive=True,
extra="ignore",
)
settings = Settings()
+1 -2
View File
@@ -1,6 +1,5 @@
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from sqlalchemy.orm import declarative_base, sessionmaker
from .config import settings
engine = create_engine(
+1 -1
View File
@@ -6,7 +6,7 @@ pydantic-settings==2.6.1
python-multipart==0.0.6
# Database
sqlalchemy==2.0.23
sqlalchemy==2.0.49
pymysql==1.1.0
cryptography==41.0.7
alembic==1.13.0