Added Django models

This commit is contained in:
teras
2017-10-07 14:35:13 +03:00
parent ec914ab7a8
commit 01cded8763
7 changed files with 84 additions and 24 deletions

25
templates/index.html Normal file
View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Index</title>
</head>
<body>
<h1>Logged in user{{ logged_int }}</h1>
<ul>
{% for o in challenges %}
<tr class="row">
{{ o }}
</tr>
{% endfor %}
</ul>
<ul>
{% for i in challenge_pair %}
<tr class="row">
{{ i.user.username }} - {{ i.challenge }}
</tr>
{% endfor %}
</ul>
</body>
</html>