use templating
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
{% extends "public/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<h2>Hi</h2>
|
||||
|
||||
<p>Blabla!</p>
|
||||
{% endblock %}
|
||||
@@ -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', {})
|
||||
|
||||
Reference in New Issue
Block a user