You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from app.db.session import get_db
from app.db.crud import create_user, get_user_by_email
from app.db.schemas import UserCreate
from app.db.session import SessionLocal
def init() -> None:
db = SessionLocal()
user = get_user_by_email(db, email="{{cookiecutter.superuser_email}}")
if not user:
create_user(
db,
UserCreate(
email="{{cookiecutter.superuser_email}}",
password="{{cookiecutter.superuser_password}}",
is_active=True,
is_superuser=True,
),
)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: