Login and registering

This commit is contained in:
teras
2017-10-07 12:32:56 +03:00
parent 22acfdd029
commit 81e3af7f7d
9 changed files with 279 additions and 25 deletions

17
templates/login.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
</head>
<body>
<h1>login</h1>
<h1>{{ auth_user }}</h1>
<form id="reg" action="/login/" method="POST">
{% csrf_token %}
Username: <input type="text" name="username"><br>
Password: <input type="password" name="password"><br>
<input type="submit" />
</form>
</body>
</html>