add dummy search view

This commit is contained in:
Sanj 2011-10-04 01:00:02 +05:30
parent 0f289b6d1a
commit 48b9822a3f
4 changed files with 7 additions and 1 deletions

View File

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

0
trubox/static/js/home.js Normal file
View File

View File

@ -5,7 +5,7 @@
{% block extra_head %}
<link rel="stylesheet" href="/static/css/slider.css" type="text/css" />
<script type="text/javascript" src="/static/js/jquery.tinycarousel.min.js"></script>
<script type="text/javascript" src="/static/js/home.js"></script>
<script type="text/javascript">
$(document).ready(function(){

View File

@ -12,6 +12,7 @@ urlpatterns = patterns('',
# Example:
# (r'^trubox/', include('trubox.foo.urls')),
(r'^$', 'deals.views.index'),
(r'^search/', 'deals.views.search'),
# Uncomment the admin/doc line below to enable admin documentation:
(r'^admin/doc/', include('django.contrib.admindocs.urls')),