corrected route type for redirect
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ main = Blueprint('main', __name__)
|
||||
|
||||
@main.route('/')
|
||||
def index():
|
||||
return redirect(url_for("gallery"))
|
||||
return redirect(url_for("main.gallery"))
|
||||
# from random import choice # (kept from your original)
|
||||
# image = ImageRecord.query.order_by(func.random()).first()
|
||||
# background_url = None
|
||||
|
||||
Reference in New Issue
Block a user