Web: add a root index page

would like to display some of the bot variables, but the base config
needs to be added to the database first, which isn't done yet
This commit is contained in:
Brian S. Stephan 2011-02-19 14:13:11 -06:00
parent 378029321c
commit faef1cb802
3 changed files with 17 additions and 0 deletions

6
web/index/views.py Normal file
View File

@ -0,0 +1,6 @@
from django.shortcuts import render_to_response
def index(request):
return render_to_response('index.html')
# vi:tabstop=4:expandtab:autoindent

10
web/templates/index.html Normal file
View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>dr.botzo</title>
</head>
<body>
<ul><li><a href="karma/">Karma</a></li></ul>
</body>
</html>

View File

@ -6,6 +6,7 @@ from django.conf.urls.defaults import *
urlpatterns = patterns(
'',
(r'^$', 'index.views.index'),
(r'^karma/', include('karma.urls')),
# Example:
# (r'^web/', include('web.foo.urls')),