some debug

This commit is contained in:
Sanj 2011-06-18 03:48:09 +05:30
parent 82399397ef
commit 9c342c9112
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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'),