Skip to content

Commit a7f7c77

Browse files
authored
Create login.html
1 parent 46fc857 commit a7f7c77

File tree

1 file changed

+21
-0
lines changed
  • blog_project/blog/templates/registration

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% extends 'blog/base.html' %}
2+
3+
4+
{% block content %}
5+
<div class="jumbotron">
6+
7+
<h2>Please Login: </h2>
8+
<h3>(Must be SuperUser, please check admin for issues.)</h3>
9+
{% if form.errors %}
10+
<p>Your username and password didn't match.Please try again!</p>
11+
{% endif %}
12+
13+
<form method="POST" action="{% url 'login' %}">
14+
{% csrf_token %}
15+
{{form.as_p}}
16+
17+
<input type="submit" class='btn btn-primary' value="Login" />
18+
<input type="hidden" name="next" value="{{ next }}" />
19+
</form>
20+
</div>
21+
{% endblock %}

0 commit comments

Comments
 (0)