From 9380ae9cfb00b6233f36d5f5418c85a799b2fed0 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Tue, 23 Apr 2013 18:02:59 -0700 Subject: [PATCH] added index template --- mmg/views.py | 4 ++-- templates/index.html | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 templates/index.html diff --git a/mmg/views.py b/mmg/views.py index 0bbf080..ff509c5 100644 --- a/mmg/views.py +++ b/mmg/views.py @@ -1,5 +1,5 @@ -from django.http import HttpResponse +from django.shortcuts import render def home(request): - return HttpResponse('world') + return render(request, 'index.html') diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..6d87f49 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,22 @@ + + + + {{ title }} + + + + + + +
+ hello +
+ + + + +