New bug that never happen in previous version #4803
Answered
by
tachyondecay
XJTLUmedia
asked this question in
Q&A
-
what the bug is: Describe how to replicate the bug. Running code from below, which is a guide showing in flask document quickstart
Describe the expected behavior that should have happened but didn't. No errors for these code for previous version of flask. So there should be no problem for this version also Environment:
|
Beta Was this translation helpful? Give feedback.
Answered by
tachyondecay
Sep 3, 2022
Replies: 1 comment
-
Your code is missing an @app.route('/')
def index():
return 'index' Without the above code, calling |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
XJTLUmedia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your code is missing an
index()
view function. The quickstart’s version is:Without the above code, calling
url_for('index')
naturally results in aBuildError
.