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
pa...@aptivate.org
unread,
Aug 18, 2012, 7:31:42 AM8/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
> I seem to be getting a DeprecationWarning when my view hits this line of
> code:
>
> return HttpResponseRedirect(reverse(results, args=[query.jobid]))
>
What does the depreciation warning say?
Mike
unread,
Aug 18, 2012, 8:58:11 AM8/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Here's the full text:
/Users/mike/sieve-django/SIEVEENV/lib/python2.6/site-packages/django/views/generic/simple.py:8: DeprecationWarning: Function-based generic views have been deprecated; use class-based views instead.
DeprecationWarning
Paul Backhouse
unread,
Aug 20, 2012, 6:01:04 AM8/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Just importing a function from django.views.generic will trigger the
warning. So I'd check your code for imports.
I made tracking down the source of these warnings a little easier by
putting stacklevel into simple.py: