login and logout

This commit is contained in:
2020-03-10 09:40:19 -07:00
parent 4681cef584
commit d1ac07a066
4 changed files with 45 additions and 6 deletions

View File

@ -1,4 +1,21 @@
{% extends 'base.html' %}
{% block content %}
HI
{% if error %}
{{ error }}
<br />
<br />
{% endif %}
<h1>Login</h1>
<form method="POST" action="{% url 'login' %}">
{% csrf_token %}
Username:
<br/>
<input type="text" name="username"/>
<br/>
Password:
<br/>
<input type="password" name="password"/>
<br/><br />
<input type="submit" value="Login" class="btn btn-primary">
</form>
{% endblock %}