From 48b9822a3fece5987c72a68545b8dba299525e56 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 4 Oct 2011 01:00:02 +0530 Subject: [PATCH 1/4] add dummy search view --- trubox/deals/views.py | 5 +++++ trubox/static/js/home.js | 0 trubox/templates/home.html | 2 +- trubox/urls.py | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 trubox/static/js/home.js diff --git a/trubox/deals/views.py b/trubox/deals/views.py index b7d42d6..5f8f625 100644 --- a/trubox/deals/views.py +++ b/trubox/deals/views.py @@ -1,5 +1,10 @@ # Create your views here. from django.shortcuts import render_to_response +from ox.django.shortcuts import render_to_json_response def index(request): return render_to_response("home.html", {}) + +def search(request): + d = {} + return render_to_json_response(d) diff --git a/trubox/static/js/home.js b/trubox/static/js/home.js new file mode 100644 index 0000000..e69de29 diff --git a/trubox/templates/home.html b/trubox/templates/home.html index ba99d09..53761c6 100644 --- a/trubox/templates/home.html +++ b/trubox/templates/home.html @@ -5,7 +5,7 @@ {% block extra_head %} - +