Commit a4498b77 by Patryk Czarnik

index.html czyli spis treści

parent da012757
<!DOCTYPE html>
{% load static %}
<html lang="pl">
<head>
<meta charset="UTF-8">
<title>Aplikacja Django</title>
<link rel="stylesheet" type="text/css" href="{% static 'styl.css'%}">
<!-- komentarz -->
</head>
<body>
<h1>Witaj w Django</h1>
<ul>
<li><a href="hello">Hello / Hello</a></li>
<li><a href="czas1">czas</a> - wersja tekstowa</li>
<li><a href="czas2">czas2</a> - HTML tworzony w funkcji</li>
<li><a href="czas3">czas3</a> - HTML tworzony szablonem</li>
<li><a href="rozmowa">rozmowa</a> - przykład formularza</li>
<li><a href="kalkulator">kalkulator</a> - wersja GET</li>
<li><a href="kalkulator_post">kalkulator</a> - wersja POST</li>
<li><a href="formularz">formularz</a> - różnego typu pola formularzy</li>
<li><a href="sklep">sklep</a> - podgląd obiektowy</li>
<li><a href="sklep.txt">sklep.txt</a> - zwykły tekst</li>
<li><a href="sklep.html">sklep.html</a> - lista HTML</li>
<li><a href="admin/">ADMIN</a> - panel administratora</li>
</ul>
</body>
</html>
\ No newline at end of file
......@@ -4,6 +4,10 @@ from django.shortcuts import render
from datetime import datetime
# Create your views here.
def root(request):
return render(request, 'index.html')
def hello(request):
return HttpResponse('Hello <b style="color:blue">Django</b>!')
......
......@@ -21,6 +21,7 @@ from aplikacja.views import *
urlpatterns = [
path("admin/", admin.site.urls),
path("", root),
path("hello", hello),
path("czas1", daj_czas),
path("czas2", czas_html),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment