Friday, August 17, 2012

deprecation warning from HttpResponseRedirect(reverse(...))

I seem to be getting a  DeprecationWarning when my view hits this line of code:

  return HttpResponseRedirect(reverse(results, args=[query.jobid]))

I'm not directly using any generic views here.  Is this a bug?  If not, what is the right way to redirect to a different view?  That line of code is still in the tutorial so I assume that it is still the right way to do it.  I'm using Django 1.4.
thanks
Mike

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/TwkYoMKmSQwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate