Django - include template tags -


currently i'm using template include in main template display form , submit back. problem none of submit buttons work inside template if placed inside main template.

my code is:

  {% csrf_token %} {{ exampleform.management_form }}   {% form in exampleform %}   <form onsubmit="return false;" method="get" class="exasubmit" enctype="multipart/form-data">     <div id="example1" type="hidden">       {{ exampleform.management_form }}         ( {{ form.letterofword }} + {{ form.keytouse }} ) mod 26 =           {{ form.lettertofill }} <button name="action" class="validatebutton" value="validate"> validate </button>  <br>         </div>       </form>   {% endfor %} 

the validate button not anything. works when call in main template , not inside include template. tips?

this might help

  {% csrf_token %} {{ exampleform.management_form }}   <form onsubmit="return false;" method="get" class="exasubmit" enctype="multipart/form-data">   {% form in exampleform %}     <div id="example1" type="hidden">       {{ exampleform.management_form }}         ( {{ form.letterofword }} + {{ form.keytouse }} ) mod 26 =           {{ form.lettertofill }} <br>         </div>    {% endfor %} <button name="action" class="validatebutton" value="validate"> validate     </button>  </form>  

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -