From 64577069a0035cfd4efc3503edf025308f283f24 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 21 Dec 2011 17:22:26 +0530 Subject: [PATCH] index page cruft --- chaloBEST/mumbai/views.py | 4 ++++ chaloBEST/templates/index.html | 0 chaloBEST/urls.py | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 chaloBEST/templates/index.html diff --git a/chaloBEST/mumbai/views.py b/chaloBEST/mumbai/views.py index 60f00ef..9d1498c 100644 --- a/chaloBEST/mumbai/views.py +++ b/chaloBEST/mumbai/views.py @@ -1 +1,5 @@ # Create your views here. +from django.shortcuts import render_to_response + +def index(request): + return render_to_response("index.html", {}) diff --git a/chaloBEST/templates/index.html b/chaloBEST/templates/index.html new file mode 100644 index 0000000..e69de29 diff --git a/chaloBEST/urls.py b/chaloBEST/urls.py index 5ffb6ec..9f86af7 100644 --- a/chaloBEST/urls.py +++ b/chaloBEST/urls.py @@ -7,7 +7,7 @@ admin.autodiscover() urlpatterns = patterns('', # Example: # (r'^chaloBEST/', include('chaloBEST.foo.urls')), - + (r'^$', 'mumbai.views.index'), # Uncomment the admin/doc line below to enable admin documentation: (r'^admin/doc/', include('django.contrib.admindocs.urls')),