No , not in that way. Let me show you some code <pre> #a.py class A: def __init__(self): #do somthing #views.py class B(A): def index(request): #do something else #urls.py (r'^$', 'site.app.views.index'), </pre>
I dont' know whether this make any sense . Right now , I can't test it , but if django won't initiate the views.py as a class , this method will make no sense. On Dec 1, 2:52 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-30 at 22:46 -0800, David Shieh wrote: > > yeah , I will consider about middleware , and I am also thinking about > > write a class that contains the functions I need , and other funcions > > just inherit it , will it work ? > > Since functions don't inherit from classes, your question doesn't really > make sense. > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---