示例#1
0
文件: views.py 项目: 2073036n/byte_me
def yelp(request):
    data = {}
    if request.method == 'POST':
        location = request.POST.get('location')
        data = requestData(location)
    return render(request, 'hackathon/yelp.html', { 'data': data })
示例#2
0
def yelp(request):
    data = {}
    if request.method == 'POST':
        location = request.POST.get('location')
        data = requestData(location)
    return render(request, 'accounts/yelp.html', {'data': data})
def yelp(request):
    data = {}
    if request.method == "POST":
        location = request.POST.get("location")
        data = requestData(location)
    return render(request, "hackathon/yelp.html", {"data": data})