diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/__init__.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..a743e8d Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/__init__.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/admin.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/admin.cpython-311.pyc new file mode 100644 index 0000000..0bbb505 Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/admin.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/apps.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/apps.cpython-311.pyc new file mode 100644 index 0000000..c0d1d68 Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/apps.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/models.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/models.cpython-311.pyc new file mode 100644 index 0000000..37c1c2f Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/models.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/urls.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..9f5cb9e Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/urls.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/views.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/views.cpython-311.pyc new file mode 100644 index 0000000..b8a8c17 Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/__pycache__/views.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/migrations/__pycache__/0001_initial.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/migrations/__pycache__/0001_initial.cpython-311.pyc new file mode 100644 index 0000000..7c6e21e Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/migrations/__pycache__/0001_initial.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/migrations/__pycache__/__init__.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/polls/migrations/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..79d0124 Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/polls/migrations/__pycache__/__init__.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/static/polls/style.css b/Задания/task1/Yaroshevskiy/test_site/polls/static/polls/style.css index dda2cdf..01c2338 100644 --- a/Задания/task1/Yaroshevskiy/test_site/polls/static/polls/style.css +++ b/Задания/task1/Yaroshevskiy/test_site/polls/static/polls/style.css @@ -1,3 +1,9 @@ h1 { color: green; } +table, tr, th { + width: 50%; + border: 1px solid; + margin-left: auto; + margin-right: auto; +} diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/templates/polls/index.html b/Задания/task1/Yaroshevskiy/test_site/polls/templates/polls/index.html index 879b0cb..dcf7be9 100644 --- a/Задания/task1/Yaroshevskiy/test_site/polls/templates/polls/index.html +++ b/Задания/task1/Yaroshevskiy/test_site/polls/templates/polls/index.html @@ -1,4 +1,4 @@ - + {% load static %} @@ -6,6 +6,16 @@ TEST -

{{text}}

+

{{ text }}

+ + + {% for i in list %} + + + + + {% endfor %} +
{{ i }}{% widthratio i 1 i %}
+ diff --git a/Задания/task1/Yaroshevskiy/test_site/polls/views.py b/Задания/task1/Yaroshevskiy/test_site/polls/views.py index 51a63de..908c983 100644 --- a/Задания/task1/Yaroshevskiy/test_site/polls/views.py +++ b/Задания/task1/Yaroshevskiy/test_site/polls/views.py @@ -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)) diff --git a/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/__init__.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 0000000..6ad9f3c Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/__init__.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/settings.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/settings.cpython-311.pyc new file mode 100644 index 0000000..0c410e6 Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/settings.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/urls.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/urls.cpython-311.pyc new file mode 100644 index 0000000..1d61633 Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/urls.cpython-311.pyc differ diff --git a/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/wsgi.cpython-311.pyc b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/wsgi.cpython-311.pyc new file mode 100644 index 0000000..4c53804 Binary files /dev/null and b/Задания/task1/Yaroshevskiy/test_site/test_site/__pycache__/wsgi.cpython-311.pyc differ