On Sun, Jul 15, 2007 at 03:34:40PM -0500, Carl Karsten wrote:
> Forest Bond wrote:
> > I'm not even sure if this sort of thing is possible, but it might be:
> >
> >
> > class MsgViews(object):
> >
> > @static_met
You are going to run into problems with that - model inheritance does
not work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.co
Forest Bond wrote:
> On Sun, Jul 15, 2007 at 02:59:57PM -0500, Carl Karsten wrote:
>> How can I use a method as a view? (so that I can subclass and extend later.)
>>
>> foo works, the other 2 give errors:
>>
>> # msg/urls.py
>> from django.conf.urls.defaults import *
>> urlpatterns = patterns('ms
On Sun, Jul 15, 2007 at 02:59:57PM -0500, Carl Karsten wrote:
>
> How can I use a method as a view? (so that I can subclass and extend later.)
>
> foo works, the other 2 give errors:
>
> # msg/urls.py
> from django.conf.urls.defaults import *
> urlpatterns = patterns('msg.views',
> (r'^det
How can I use a method as a view? (so that I can subclass and extend later.)
foo works, the other 2 give errors:
# msg/urls.py
from django.conf.urls.defaults import *
urlpatterns = patterns('msg.views',
(r'^detail/(?P[-\w]+)/$', 'foo'),
(r'^detail/x/(?P[-\w]+)/$', 'MsgViews.message_de
5 matches
Mail list logo