#17361: syndication framework: no way to reverse feed url
-------------------------------------+-------------------------------------
Reporter: anatoly techtonik | Owner: nobody
<techtonik@…> | Status: closed
Type: Bug | Version: 1.2
Component: contrib.syndication | Resolution: invalid
Severity: Normal | Triage Stage:
Keywords: | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by lukeplant):
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Yes, I believe it is impossible to reverse URLs defined only by a callable
in the template. The solution is to either:
1) refer to your view by a string (dotted path) - which is possible in
this case if you do something like `codereview_feeds =
codereview.feeds.AllFeed()` in the relevant views.py. Or:
2) Give your URL a name.
--
Ticket URL: <https://code.djangoproject.com/ticket/17361#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.