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:
parent
378029321c
commit
faef1cb802
6
web/index/views.py
Normal file
6
web/index/views.py
Normal 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
10
web/templates/index.html
Normal 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>
|
@ -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')),
|
||||
|
Loading…
Reference in New Issue
Block a user