Zwischenstand des vierten Praktikums:

Auslagerung des HTML-Inhalts als eigene HMTL-Datei -> funktioniert!
Vererbte HMTL-Datei "index.html" von "base.html" -> funktioniert!
This commit is contained in:
2018-11-05 16:34:20 +01:00
parent 99e8c4c710
commit debf9376fc
7 changed files with 220 additions and 216 deletions
+1 -1
View File
@@ -4,4 +4,4 @@ from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Praktikum -> done :-)")
return render(request, 'posts/index.html')