From 8ae109f26c14fce16d03b5d33d7ec61977f98688 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 17 Jul 2009 18:41:00 +0200 Subject: [PATCH] add empty index --- templates/index.html | 1 + urls.py | 1 + views.py | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 templates/index.html create mode 100644 views.py diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/templates/index.html @@ -0,0 +1 @@ + diff --git a/urls.py b/urls.py index 1bf0816..045266e 100644 --- a/urls.py +++ b/urls.py @@ -6,6 +6,7 @@ from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', + (r'^', 'oxdata.views.index'), (r'^poster/', include('oxdata.poster.urls')), (r'^id/', include('oxdata.lookup.urls')), diff --git a/views.py b/views.py new file mode 100644 index 0000000..fa2777a --- /dev/null +++ b/views.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# vi:si:et:sw=4:sts=4:ts=4 +from django.shortcuts import render_to_response, get_object_or_404, get_list_or_404 +from django.template import RequestContext + + +def index(request): + context = RequestContext(request, {}) + return render_to_response('index.html', context) +