Spaces:
Runtime error
Runtime error
Download admin.py from shakauthossain/Portfolio: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/shakauthossain/Portfolio/resolve/main/admin.py
- Command line
-
hf download hf://spaces/shakauthossain/Portfolio/admin.py
-
curl -L -o admin.py https://huggingface.co/spaces/shakauthossain/Portfolio/resolve/main/admin.py
492 Bytes
| from app.database import SessionLocal | |
| from app.models import User | |
| from app.auth import get_password_hash | |
| import uuid | |
| from datetime import datetime | |
| db = SessionLocal() | |
| user = User( | |
| id=uuid.uuid4(), | |
| email="shakauthossain0@gmail.com", | |
| password_hash=get_password_hash("bangladesh"), | |
| full_name="Admin User", | |
| is_active=True, | |
| created_at=datetime.utcnow(), | |
| updated_at=datetime.utcnow() | |
| ) | |
| db.add(user) | |
| db.commit() | |
| db.refresh(user) | |
| print("✅ User created:", user.email) |