Add Sign Up page
This commit is contained in:
@@ -12,5 +12,7 @@ Hi {{ user.username }}!
|
||||
{% else %}
|
||||
<p>You are not logged in</p>
|
||||
<a href="{% url 'login' %}">Log In</a>
|
||||
<br />
|
||||
<a href="{% url 'signup' %}">Sign Up</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
12
templates/registration/signup.html
Normal file
12
templates/registration/signup.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Sign Up{% endblock %}
|
||||
|
||||
{%block content %}
|
||||
<h2>Sign Up</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<button type="submit">Sign Up</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user