Answer the question
In order to leave comments, you need to log in
{% csrf_token %} not visible, why?
Through templatetags I connect the template with the form:
@register.inclusion_tag('loginsys/loginform.html')
def loginform():
return {}
<form method="post" action="{% url 'loginsys:login' %}">
{% csrf_token %}
<input type="text" name="login[username]" id="username" placeholder="Логин" class="inputbox"/>
<input type="password" name="login[password]" id="password" placeholder="Пароль" class="inputbox"/>
<input class="button" value="" type="submit"/>
</form>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question