I'm trying to create a user registration in Django, but I have an issue with the template: registrazione.html.
I try to see over StackOverFlow but I see only spelling errors
CodePudding user response:
Try this way:
{% extends 'base.html' %}
{% load crispy_forms_tags %}
{% block head_title %}
{{ block.super }} - Registrati sul Forum
{% endblock head_title %}
{% block content %}
<div >
<div >
<h2>Registrati sul Sito!</h2>
<form method="POST" novalidate>
{% csrf_token %} {{ form|crispy }}
<input type="submit" value="Crea Account" />
</form>
</div>
</div>
{% endblock content %}
CodePudding user response:
You got this error because you did wrong in base.html.
change this in base.html:
instead of this:
<div >{% block content %} {% endblock content %}</div>
Try this:
<div >{% block content %} {% endblock %}</div>
And now this error will solve