From 95d2bc389152045f9a25a1522c4ae779f3af218e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jmeno=20P=C5=99=C3=ADjmen=C3=AD?= Date: Fri, 1 Oct 2021 09:40:57 +0200 Subject: [PATCH] index --- seasons/templates/seasons/index.html | 1 + seasons/views.py | 2 ++ zima_prijde/urls.py | 3 +++ 3 files changed, 6 insertions(+) create mode 100644 seasons/templates/seasons/index.html diff --git a/seasons/templates/seasons/index.html b/seasons/templates/seasons/index.html new file mode 100644 index 0000000..043b2f5 --- /dev/null +++ b/seasons/templates/seasons/index.html @@ -0,0 +1 @@ +výchozí stránka diff --git a/seasons/views.py b/seasons/views.py index 91ea44a..90b24b3 100644 --- a/seasons/views.py +++ b/seasons/views.py @@ -1,3 +1,5 @@ from django.shortcuts import render # Create your views here. +def index(request): + return render(request, "seasons/index.html") diff --git a/zima_prijde/urls.py b/zima_prijde/urls.py index 15a3ca4..a888e0d 100644 --- a/zima_prijde/urls.py +++ b/zima_prijde/urls.py @@ -16,6 +16,9 @@ Including another URLconf from django.contrib import admin from django.urls import path +from seasons.views import index + urlpatterns = [ path('admin/', admin.site.urls), + path('', index), ]