{% extends 'base.html' %}

{% block content %}

<h1>Create an account</h1>

<form action="" method="post">
  {{ form.as_p }}
  <input type="submit" value="Create the account">
</form>

{% endblock %}


{% extends 'base.html' %}

{% block content %}

<h1>Create an account</h1>

<form action="" method="post">
  {{ form.as_p }}
  {% csrf_token %}
  <input type="submit" value="Create the account">
</form>

{% endblock %}


Add CSRF token to registration form
Add CSRF token to registration form
