final upload

This commit is contained in:
2025-06-27 16:50:35 +03:00
parent d154853c7d
commit 67c9083a6e
24 changed files with 760 additions and 322 deletions

View File

@@ -1,5 +1,7 @@
import os
from app import app, db, User, bcrypt
from app import app
from extensions import db, bcrypt
from models import User, ServerLog # Import from models.py instead of app.py
def create_admin_user():
admin_username = os.getenv('ADMIN_USER', 'admin')
@@ -18,4 +20,5 @@ if __name__ == '__main__':
with app.app_context():
db.create_all()
create_admin_user()
print("Database initialized with all models including ServerLog")