diff --git a/seasons/static/seasons/css/style.css b/seasons/static/seasons/css/style.css new file mode 100644 index 0000000..1de7864 --- /dev/null +++ b/seasons/static/seasons/css/style.css @@ -0,0 +1,3 @@ +body { + color: cyan; +} diff --git a/seasons/static/seasons/img/ori.jpg b/seasons/static/seasons/img/ori.jpg new file mode 100644 index 0000000..f3db38e Binary files /dev/null and b/seasons/static/seasons/img/ori.jpg differ diff --git a/seasons/static/seasons/img/summer.jpg b/seasons/static/seasons/img/summer.jpg new file mode 100644 index 0000000..96d2cbd Binary files /dev/null and b/seasons/static/seasons/img/summer.jpg differ diff --git a/seasons/templates/seasons/base.html b/seasons/templates/seasons/base.html new file mode 100644 index 0000000..a1a4d19 --- /dev/null +++ b/seasons/templates/seasons/base.html @@ -0,0 +1,19 @@ +{% load static %} + + +
+ + + ++ pouzij block content pro vlastni obsah +
+ {% endblock %} + + \ No newline at end of file diff --git a/seasons/templates/seasons/index.html b/seasons/templates/seasons/index.html index e69de29..07443cb 100644 --- a/seasons/templates/seasons/index.html +++ b/seasons/templates/seasons/index.html @@ -0,0 +1,12 @@ +{% extends "seasons/base.html" %} + +{% block content %} ++ vychozi stranka +
+ + +{% endblock %} \ No newline at end of file diff --git a/seasons/templates/seasons/summer.html b/seasons/templates/seasons/summer.html new file mode 100644 index 0000000..a21c14d --- /dev/null +++ b/seasons/templates/seasons/summer.html @@ -0,0 +1,7 @@ +{% extends "seasons/base.html" %} + +{% block content %} ++ leto +
+{% endblock %} \ No newline at end of file diff --git a/seasons/templates/seasons/winter.html b/seasons/templates/seasons/winter.html new file mode 100644 index 0000000..9b82d32 --- /dev/null +++ b/seasons/templates/seasons/winter.html @@ -0,0 +1,7 @@ +{% extends "seasons/base.html" %} + +{% block content %} ++ Zima +
+{% endblock %} \ No newline at end of file diff --git a/seasons/views.py b/seasons/views.py index 83479c8..ac695fb 100644 --- a/seasons/views.py +++ b/seasons/views.py @@ -2,4 +2,10 @@ from django.shortcuts import render # Create your views here. def index(request): - return render(request, "seasons/index.html") \ No newline at end of file + return render(request, "seasons/index.html") + +def summer(request): + return render(request, "seasons/summer.html") + +def winter(request): + return render(request, "seasons/winter.html") \ No newline at end of file diff --git a/zima_prijde/urls.py b/zima_prijde/urls.py index cec45eb..08afed4 100644 --- a/zima_prijde/urls.py +++ b/zima_prijde/urls.py @@ -15,9 +15,11 @@ Including another URLconf """ from django.contrib import admin from django.urls import path -from seasons.views import index +from seasons.views import index, summer, winter urlpatterns = [ path('admin/', admin.site.urls), - path('', index) + path('leto/', summer, name="leto"), + path('zima/', winter, name="zima"), + path('', index, name="index") ]