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):
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
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
3 matches
Mail list logo