parent
2454fa1303
commit
11d75e2992
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,24 +0,0 @@ |
|||||||
{% extends "base.html" %} |
|
||||||
|
|
||||||
{% block title %}My amazing blog{% endblock %} |
|
||||||
|
|
||||||
{% block content %} |
|
||||||
<h1>Create account</h1> |
|
||||||
<form action="{% url 'news:submit' %}" method="post"> |
|
||||||
|
|
||||||
<p>Username</p> |
|
||||||
<p> |
|
||||||
<input type="text" name="username" value=""> |
|
||||||
</p> |
|
||||||
|
|
||||||
<p>Password</p> |
|
||||||
<p> |
|
||||||
<input type="text" name="password1" value=""> |
|
||||||
<input type="text" name="password2" value=""> |
|
||||||
</p> |
|
||||||
|
|
||||||
<input type="submit" value="Submit"> |
|
||||||
|
|
||||||
</form> |
|
||||||
|
|
||||||
{% endblock content %} |
|
||||||
@ -0,0 +1,33 @@ |
|||||||
|
{% extends "base.html" %} |
||||||
|
|
||||||
|
{% block title %} |
||||||
|
Create User |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
|
||||||
|
<div class="login"> |
||||||
|
|
||||||
|
{% if messages %} |
||||||
|
<ul> |
||||||
|
{% for message in messages %} |
||||||
|
<li>{{ message }}</li> |
||||||
|
{% endfor %} |
||||||
|
</ul> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<h1>Create account</h1> |
||||||
|
|
||||||
|
<form method="post" > |
||||||
|
{% csrf_token %} |
||||||
|
<table> |
||||||
|
{{ form.as_table }} |
||||||
|
<tr> |
||||||
|
<td></td> |
||||||
|
<td><input type="submit" name="submit" value="Register" /></td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
@ -0,0 +1,33 @@ |
|||||||
|
{% extends "base.html" %} |
||||||
|
|
||||||
|
{% block title %} |
||||||
|
Sign-in |
||||||
|
{% endblock %} |
||||||
|
|
||||||
|
{% block content %} |
||||||
|
|
||||||
|
<div class="login"> |
||||||
|
|
||||||
|
{% if messages %} |
||||||
|
<ul> |
||||||
|
{% for message in messages %} |
||||||
|
<li>{{ message }}</li> |
||||||
|
{% endfor %} |
||||||
|
</ul> |
||||||
|
{% endif %} |
||||||
|
|
||||||
|
<h1>Sign in</h1> |
||||||
|
|
||||||
|
<form method="post" > |
||||||
|
{% csrf_token %} |
||||||
|
<table> |
||||||
|
{{ form.as_table }} |
||||||
|
<tr> |
||||||
|
<td></td> |
||||||
|
<td><input type="submit" name="submit" value="Signin" /></td> |
||||||
|
</tr> |
||||||
|
</table> |
||||||
|
</form> |
||||||
|
</div> |
||||||
|
|
||||||
|
{% endblock %} |
||||||
Binary file not shown.
Loading…
Reference in new issue