How to place a form in all subsites and process i on 1 url?

10 views
Skip to first unread message

galgal

unread,
Oct 13, 2011, 7:12:18 AM10/13/11
to django...@googlegroups.com
I need to place a form in all my subsites and home page. It's placed on right column. It's action is "/". If there are some errors I must display them.
I made Form class etc. I display it via {{ form.as_p }} and designed all.

The problem is - how to put it on all sites? I don't want to make form instance in all my views functions.

What is the best solution for that?

Paul Schewietzek

unread,
Oct 13, 2011, 10:52:51 AM10/13/11
to django...@googlegroups.com
Look at template inheritance:

https://docs.djangoproject.com/en/1.3/topics/templates/#template-inheritance


2011/10/13 galgal <weglare...@gmail.com>:

> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/D-oc9OMkpykJ.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

Reply all
Reply to author
Forward
0 new messages