From 9c342c91124b4aefdf777f240bcd779b90e37e54 Mon Sep 17 00:00:00 2001 From: Sanj Date: Sat, 18 Jun 2011 03:48:09 +0530 Subject: [PATCH] some debug --- edgware/main/views.py | 5 +++++ edgware/urls.py | 1 + 2 files changed, 6 insertions(+) diff --git a/edgware/main/views.py b/edgware/main/views.py index 9b53782..ec25830 100644 --- a/edgware/main/views.py +++ b/edgware/main/views.py @@ -1,5 +1,6 @@ # Create your views here. from django.shortcuts import render_to_response +import Image def home(request): return render_to_response("main/home.html") @@ -21,3 +22,7 @@ def faq(request): def help(request): return render_to_response("main/help.html") + +def debug(request): + imageVersion = Image.VERSION + return HttpResponse(imageVersion) diff --git a/edgware/urls.py b/edgware/urls.py index f853d60..0c4ec59 100644 --- a/edgware/urls.py +++ b/edgware/urls.py @@ -11,6 +11,7 @@ urlpatterns = patterns('', # Example: # (r'^edge/', include('edge.foo.urls')), (r'^sandbox/$', 'main.views.home'), + (r'^debug/$', 'main.views.debug'), (r'^sandbox/home$', 'main.views.home'), (r'^sandbox/contact$', 'main.views.contact'), (r'^sandbox/archive$', 'main.views.archive'),