feat: initial commit - lightweight ticket system with Flask+SQLite
Features: - User authentication (login/register) - Ticket CRUD with status/priority/category - Rich text description with paste-to-image - File attachment upload (images/documents) - Multi-select CC recipients - Role-based permission control (admin/user) - In-app notifications - Statistics dashboard - Gunicorn production deployment
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Gunicorn WSGI entry point.
|
||||
DB initialization + upload folder setup.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
os.makedirs(os.path.join(os.path.dirname(__file__), "uploads"), exist_ok=True)
|
||||
|
||||
from app import app, db, seed_admin
|
||||
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
seed_admin()
|
||||
Reference in New Issue
Block a user