add user settings

This commit is contained in:
2025-07-02 02:21:53 +03:00
parent bd556d102b
commit dde1139eed
5 changed files with 158 additions and 4 deletions

View File

@ -57,6 +57,9 @@ def create_app():
app.config["SECRET_KEY"] = os.getenv("FLASK_SECRET_KEY")
app.config['AVATAR_UPLOAD_PATH'] = 'data/static/avatars/'
app.config['MAX_CONTENT_LENGTH'] = 1000 * 1000
os.makedirs(os.path.dirname(app.config["DB_PATH"]), exist_ok = True)
with app.app_context():
from .schema import create as create_tables