Refactor .gitignore; add patterns for SQLite database files and improve ignored file management
Enhance app initialization; set secret key from environment variable for better security practices Update work_log model import; change User import path for improved module structure Refactor routes; add new inventory item creation route and enhance settings handling with JSON form state Improve ComboBoxWidget; add handleComboAdd function for better option management and integrate with render_combobox macro Revamp settings template; implement form state management and improve modal functionality for room creation Add error template; create a new error handling page for better user feedback
This commit is contained in:
parent
142e909a88
commit
c6fc1a4795
9 changed files with 269 additions and 113 deletions
|
@ -1,6 +1,7 @@
|
|||
from flask import Flask
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
import logging
|
||||
import os
|
||||
|
||||
db = SQLAlchemy()
|
||||
|
||||
|
@ -14,6 +15,7 @@ if not logger.handlers:
|
|||
def create_app():
|
||||
from config import Config
|
||||
app = Flask(__name__)
|
||||
app.secret_key = os.getenv('SECRET_KEY', 'dev-secret-key-unsafe') # You know what to do for prod
|
||||
app.config.from_object(Config)
|
||||
|
||||
db.init_app(app)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue