I have used Django for several months , and it really attacts me . I love it. But when I use it more , I found a problem troubles me , that is , I can't find a way to make a function be called by every view function automatically .
I used CakePHP , it have a function named beforeFilter() . It will be called everytime before the action excute . That is , when a user calles an action , this beforeFilter() fucntion is called by CakePHP automatically , very convenient. So I think , does Django have the same function like CakePHP ? And as I know , other frameworks also have the same function , like RoR . I have searched for some information . I know that middleware can do this , but what I really want is just a small function for this . So , guys , please help me with this , thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---