Django snippet with logic
Posted
by etam
on Stack Overflow
See other posts from Stack Overflow
or by etam
Published on 2010-06-07T21:09:51Z
Indexed on
2010/06/07
21:12 UTC
Read the original article
Hit count: 395
Hi,
is there a way to create a Django snippet that has logic?
I think about something like contact template tag:
{% contact_form %}
with template:
<form action="send_contact_form" method="POST">...</form>
with logic:
def send_contact_form():
...
I want to be able to use it anywhere in my projects. It should work only by specifying 1 template tag... Do you know what I mean? Is it possible?
Thanks in advance, Etam.
© Stack Overflow or respective owner