create project and create model and dashboard

This commit is contained in:
2025-12-11 10:16:43 +05:30
parent 2371202ac3
commit 2e62320167
55 changed files with 1072 additions and 0 deletions

24
app/config.py Normal file
View File

@@ -0,0 +1,24 @@
import os
class Config:
SQLALCHEMY_DATABASE_URI = "mysql+pymysql://root:root@localhost/comparisondb"
SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = "secret123"
UPLOAD_FOLDER = "app/static/uploads/"
ALLOWED_EXTENSIONS = {"xlsx", "xls", "csv"}
# class Config:
# SECRET_KEY = os.getenv("SECRET_KEY", "dev_key_12345")
# UPLOAD_FOLDER = "app/static/uploads/"
# ALLOWED_EXTENSIONS = {"xlsx", "xls", "csv"}
# DB_HOST = "localhost"
# DB_USER = "root"
# DB_PASSWORD = "root"
# DB_NAME = "comparisondb"