add user settings
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user