Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

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

comment:1 by Aymeric Augustin, 11 years ago

Resolution: worksforme
Status: newclosed

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

in reply to:  1 ; comment:2 by nielsen.ruben@…, 11 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

in reply to:  2 comment:3 by Aymeric Augustin, 11 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 Dominique L, 11 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

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