Code

Opened 17 months ago

Closed 17 months ago

Last modified 15 months 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/

Attachments (0)

Change History (4)

comment:1 follow-up: Changed 17 months 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 15 months 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 15 months 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 15 months 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.