From 00d51e0d781b76536d34f64e28bd9e51e9f40dc4 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 29 Dec 2011 19:14:29 +0530 Subject: [PATCH] merged, fixed image in template --- chaloBEST/mumbai/views.py | 5 +++++ chaloBEST/templates/index.html | 2 +- chaloBEST/urls.py | 12 +++++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/chaloBEST/mumbai/views.py b/chaloBEST/mumbai/views.py index 60f00ef..e22023a 100644 --- a/chaloBEST/mumbai/views.py +++ b/chaloBEST/mumbai/views.py @@ -1 +1,6 @@ # 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 index a770c84..e371fbc 100644 --- a/chaloBEST/templates/index.html +++ b/chaloBEST/templates/index.html @@ -12,7 +12,7 @@
- +

Free and simple tools to find bus routes in Mumbai, coming soon to your phone.

diff --git a/chaloBEST/urls.py b/chaloBEST/urls.py index a5ad9c5..9a497f3 100644 --- a/chaloBEST/urls.py +++ b/chaloBEST/urls.py @@ -1,5 +1,6 @@ from django.conf.urls.defaults import * - +import settings +from os.path import join # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() @@ -15,3 +16,12 @@ urlpatterns = patterns('', # Uncomment the next line to enable the admin: (r'^admin/', include(admin.site.urls)), ) + +if settings.LOCAL_DEVELOPMENT: +# + urlpatterns += patterns('', +# + (r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': join(settings.PROJECT_ROOT, "static")}), +# +) +