Skip to content

URL, in templates, cannot reference non-handler route definitions #243

Answered by ellmetha
igbanam asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! 👋

Your nested_app route is an including route and as such it does not map to a concrete handler: only concrete handler routes can be resolved using the url template tag.

I imagine your NestedApp::ROUTES constant contains another route map, so instead of trying to resolve nested_app you should probably try to resolve the URL of one of the underlying (namespaced) routes (eg. {% url "nested_app:sub_route" %}).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@igbanam
Comment options

Answer selected by igbanam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #242 on July 12, 2024 00:30.