reverse should be more lenient on non-existent views in the urlconf
|Reported by:||Chris Beaven||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
If you try to use the
reverse (even for an existing view) while you have a non-existent view referenced in your urlconf, a
ViewDoesNotExist error will be raised.
This happens because a
reverse_dict cache is built for the
RegexURLResolver containing a list to all pattern callbacks and names.
Rather than the whole thing falling over, all that should really happen in this case is that the callback is left out of
Change History (11)
comment:4 Changed 9 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Ready for checkin → Accepted|