url_for() is broken with multiple same blueprint #4378
Unanswered
sergiokessler
asked this question in
Q&A
Replies: 2 comments 2 replies
-
As the error says, you need to specify the URL you want to build. The url takes the form |
Beta Was this translation helpful? Give feedback.
0 replies
-
Maybe I was not clear, but there is ONE api.py, and at that point I don't know how the name will be later... I tried url_for(f'{bpname}.ping') but that didn't work (it just gives me the relative url, not the full one) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
my situation is something like this:
api.py
and then:
main.py
I expected
url_for()
to just work in this scenario, but instead, it gives me:isn't this supposed to work?
Environment:
Beta Was this translation helpful? Give feedback.
All reactions