Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#8184 closed (fixed)

urlresolver doc

Reported by: Henrik Vendelbo Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I think this nice comment from the mailing list should be added to the reverse() function doc

The urlresolvers.reverse function throws an exception if *any* of your
URLs anywhere in the project have a bad view and not necessarily the
one you are trying to reverse map. So, check that you don't have any
URL mappings with undefined view functions (or views with syntax
errors).

Change History (3)

comment:1 by Jacob, 16 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Malcolm Tredinnick, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in r9167, even though I referred to entirely the wrong ticket in the commit message there.

comment:3 by Malcolm Tredinnick, 16 years ago

(In [9173]) [1.0.X] Fixed #8184 -- Added a note to the documentation for reverse() that all
views must be importable for URL reversing to work correctly.

Backport of r9167 from trunk.

Note: See TracTickets for help on using tickets.
Back to Top