added index template

This commit is contained in:
Stephen McQuay 2013-04-23 18:02:59 -07:00
parent bdd0af63a8
commit 9380ae9cfb
2 changed files with 24 additions and 2 deletions

View File

@ -1,5 +1,5 @@
from django.http import HttpResponse from django.shortcuts import render
def home(request): def home(request):
return HttpResponse('world') return render(request, 'index.html')

22
templates/index.html Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="/static/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" media="screen">
<style>
.pw {
padding-top: 100px;
}
</style>
</head>
<body>
<section id="content">
hello
</section>
<script src="/static/jquery-2.0.0.min.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/math.js"></script>
</body>
</html>