Thank you for the advise. I just started using Django and sometimes it
takes time to get used to do certain things.


Regards,

Arif

On Nov 20, 3:40 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-11-20 at 15:18 -0800, ayayalar wrote:
> > I understand, I wish it was possible to bind multiple view functions
> > to a single template through the urls...
>
> Why? It's the wrong level of coupling. Each URL patterns ends up
> resolving to a single view function. However that view function can (and
> should if there's any great level of processing involved) call other
> functions to do whatever it wants. So just move your multiple function
> calls down one layer. It retains the "view per URL" pattern and you can
> still have one function for each form. You just need to merge the
> results at the end, but since that's just a dictionary update, it's one
> line of code.
>
> You are trying to make this way too hard for yourself by getting hung up
> on one particular pattern of usage that you guessed might be possible
> without any supporting evidence. Since that isn't possible in Django and
> isn't ever likely to be possible, it's particularly counter-productive
> not to move on, especially as the way to do this is trivial.
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to