Re: Django and jQuery trouble

2009-02-10 Thread Antoni Aloy
2009/2/10 min : > > Hi, everyone. > > I have a question for the following example. > > Firstly, in the view.py: > > def test_1(request, zipcode, pro): > if zipcode == 'a' and pro == 'b': >city = 'c' > else: >city = '' > > return HttpResponse(city) > > def test_0(request): > return rend

Django and jQuery trouble

2009-02-09 Thread min
Hi, everyone. I have a question for the following example. Firstly, in the view.py: def test_1(request, zipcode, pro): if zipcode == 'a' and pro == 'b': city = 'c' else: city = '' return HttpResponse(city) def test_0(request): return render_to_response('test_0.html', {}) -