All pastes #634690 Raw Edit

Shriphani Palakodety/views.py

public text v1 · immutable
#634690 ·published 2007-07-26 16:28 UTC
rendered paste body
from pinplace.pincode.models import *
from django.template import loader
from django import newforms as forms
def index(request):
        t = loader.get_template('/home/shriphani/pinplace/pincode/index.html')

def index2(request):
        p=request.POST['pincode']
        s = Pin_Of_Place.objects.filter(Pincode=pincode)
        if s == '[]':
                return HttpResponse("We do not have this pincode in our database")
        else:
                return HttpResponse(s)