Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#19930 closed Bug (worksforme)

Upgrading to Django v1.5 breaks django.core.urlresolvers.reverse()

Reported by: HakTom 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 follow-up: Changed 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

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

comment:2 in reply to: ↑ 1 ; follow-up: Changed 2 years ago by nielsen.ruben@…

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 in reply to: ↑ 2 Changed 2 years ago by aaugustin

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 Changed 2 years ago by HakTom

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