Re: converting from function based views to class based views

2011-12-12 Thread Dan Gentry
I can't test this, but the code below may do what you want. (I learned this stuff from Reinout's blog posts) # urls.py (r'^tags/(?P[a-zA-Z0-9_.-]+)/$', djangoblog.tag_views.TagDetailListView.as_view()) # views.py from django.views.generic import ListView class TagDetailListView(ListView):

Re: converting from function based views to class based views

2011-12-10 Thread Reinout van Rees
On 10-12-11 21:40, Jake Richter wrote: I'm working through this tutorial http://www.webmonkey.com/2010/02/Use_URL_Patterns_and_Views_in_Django/ It's written for Django 1.0 and I'm using 1.3 which has changed to class based views. I'm having a hard time converting from function based to class

converting from function based views to class based views

2011-12-10 Thread Jake Richter
Hi group, I'm working through this tutorial http://www.webmonkey.com/2010/02/Use_URL_Patterns_and_Views_in_Django/ It's written for Django 1.0 and I'm using 1.3 which has changed to class based views. I'm having a hard time converting from function based to class based. Can anyone offer help on