Enhance Article editor 2
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ def create_app(config_name=None):
|
||||
login_manager.login_message_category = 'info'
|
||||
|
||||
# ── Upload directory ──────────────────────────────────────────────────────
|
||||
upload_dir = app.config.get('UPLOAD_FOLDER', 'app/static/uploads')
|
||||
upload_dir = app.config['UPLOAD_FOLDER'] # always absolute — set in config.py
|
||||
os.makedirs(upload_dir, exist_ok=True)
|
||||
|
||||
# ── Logging ───────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user