Django

Code

Ticket #8184 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

urlresolver doc

Reported by: hvendelbo Assigned to: nobody
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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).

Attachments

Change History

08/12/08 12:18:55 changed by jacob

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

10/06/08 03:38:26 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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

10/06/08 03:47:01 changed by mtredinnick

(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.


Add/Change #8184 (urlresolver doc)




Change Properties
Action