add dummy search view
This commit is contained in:
parent
0f289b6d1a
commit
48b9822a3f
|
@ -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
0
trubox/static/js/home.js
Normal 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(){
|
||||
|
||||
|
|
|
@ -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')),
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user