#19930 closed Bug (worksforme)
Upgrading to Django v1.5 breaks django.core.urlresolvers.reverse()
Reported by: | Dominique L | Owned by: | nobody |
---|---|---|---|
Component: | Core (URLs) | Version: | 1.5-rc-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
reverse() worked in 1.4.5, after upgrading to 1.5 i get a ViewDoesNotExist Exception
"Could not import django.views.generic.simple.redirect_to. Parent module django.views.generic.simple does not exist."
reading the release notes did not help me.
traceback: http://dpaste.com/1005142/
Change History (4)
follow-up: 2 comment:1 by , 12 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
follow-up: 3 comment:2 by , 12 years ago
Replying to aaugustin:
Please read the big warning box with an orange border at the top of the "Backwards incompatible changes in 1.5" section of the release notes.
It contains the information you're looking for :)
Could you be more specific? What is the solution?
A giant list of deprecations aren't really helpful to a specific problem
comment:3 by , 12 years ago
Replying to nielsen.ruben@…:
A giant list of deprecations aren't really helpful to a specific problem
We can't tailor it for each one of the tens of thousands of users of Django...
comment:4 by , 12 years ago
in my specific case: function-based generic views have been deprecated in favor of a class-based approach
so i had to replace my redirect_to methods in url.py with RedirectView.as_view()
https://docs.djangoproject.com/en/1.5/ref/class-based-views/base/#redirectview
Please read the big warning box with an orange border at the top of the "Backwards incompatible changes in 1.5" section of the release notes.
It contains the information you're looking for :)