I understand, I wish it was possible to bind multiple view functions
to a single template through the urls...

Would something like this possible?

URLS
urlpatterns = patterns('',

    (r'^product/$', views.add_product, views.add_product_details),)



On Nov 20, 3:07 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-11-20 at 14:03 -0800, ayayalar wrote:
>
> [...]
>
> > URLS
> > urlpatterns = patterns('',
>
> >     (r'^product/$', views.add_product),
> >     (r'^product/$', views.add_product_details),
>
> This has no chance of doing what you expect. Only one view function will
> be called for a single request. If you want to pass two form objects to
> the template, you need to do it from the same view function. You can
> still put the form creation pieces in separate functions, but your view
> function will have to call both of them and combine the results into a
> context to pass to a template.
>
> 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