From and Template in Django

10 views
Skip to first unread message

ben aziz zizah

unread,
Feb 25, 2020, 5:55:29 PM2/25/20
to Django users
Is that possible to use the same form in more than one template

Juan Pablo Romero Bernal

unread,
Feb 25, 2020, 8:17:27 PM2/25/20
to django...@googlegroups.com
Hi,

Yes, you can use an instance of Form in more than one template:



On Tue, Feb 25, 2020 at 4:54 PM ben aziz zizah <zizahb...@gmail.com> wrote:
Is that possible to use the same form in more than one template

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/f9ac6f20-8d59-47be-b32f-27471b122c3b%40googlegroups.com.


--
Juan 

Naveen Arora

unread,
Feb 26, 2020, 2:42:04 AM2/26/20
to Django users
Hi ben,

You can use the same form any number of times passing it through views.

Also, you can create a form.html which you can include anywhere for HTML forms using include tag.

Cheers
Naveen Arora
Reply all
Reply to author
Forward
0 new messages