1 <form id='formulario2' method='post' action='>
2 <h3>Enter:</h3>
3 {% csrf_token %}
4
5
6 <input id="id_mesaje" name="mesaje" type="email" placeholder="E-mail"/>
7 <input type='submit' name="boton2" value='Suscribete' style="display:inline-block;background-color: #80e174; "/>
8 </form>
9
1Django CSRF Token
2CSRF verification failed. Request aborted.
3---------------------------------------------------
4from django.views.decorators.csrf import csrf_exempt # import
5@csrf_exempt # add this token before defining function
6 def def_name():
7 ...