use templating

This commit is contained in:
erichhasl
2017-11-17 23:55:53 +01:00
parent 9e63be6b00
commit 2cd00e88bf
5 changed files with 22 additions and 3 deletions
@@ -0,0 +1,7 @@
{% extends "public/base.html" %}
{% block content %}
<h2>Hi</h2>
<p>Blabla!</p>
{% endblock %}
+2 -2
View File
@@ -1,6 +1,6 @@
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def index(request):
return HttpResponse("Hey!")
return render(request, 'startpage/index.html', {})