Hi Daniel On Tue, Dec 7, 2010 at 6:08 PM, Daniel Swarbrick <daniel.swarbr...@gmail.com> wrote: > Forgetting namespaces or existing named URL patterns for a moment, the > major difference is that with function-based views, we were giving a > qualified "module.function" parameter to reverse() or {% url %}. > > How can we do that with class-based views, without naming every URL > pattern? Or is it not possible?
Simple. In your views.py: my_view_function = MyViewClass.as_view() You can then use `my_view_function` like every other view, like using it in an url pattern without providing a name or decorating it. But I think we are slowly approaching django-user territory here... Kind regards, Benjamin -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.