mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-24 08:00:22 +00:00
mutable template added
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -1,3 +1,9 @@
|
||||
h1 {
|
||||
color: green;
|
||||
}
|
||||
table, tr, th {
|
||||
width: 50%;
|
||||
border: 1px solid;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE <html>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{% load static %}
|
||||
@@ -6,6 +6,16 @@
|
||||
<title>TEST</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{text}}</h1>
|
||||
<h1>{{ text }}</h1>
|
||||
|
||||
<table>
|
||||
{% for i in list %}
|
||||
<tr>
|
||||
<th>{{ i }}</th>
|
||||
<th>{% widthratio i 1 i %}</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,7 +5,8 @@ from django.shortcuts import render
|
||||
|
||||
def index(request):
|
||||
context = {
|
||||
"text": "test"
|
||||
"text": "test",
|
||||
"list": range(101)
|
||||
}
|
||||
|
||||
return HttpResponse(render(request, "polls/index.html", context))
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user