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), ]