def tweets(request): api = api_action.get_api() if 'q' in request.GET.keys(): q = request.GET['q'] p1 = SearchQuery(query=q) p1.save() list1 = search_action.search(q,api) return render(request,'tweets4.html',{'list1': list1, 'q' : q}) else: return render(request,'error_no_query.html',{})
def tweets(request): api = api_action.get_api() if 'q' in request.GET.keys(): q = request.GET['q'] p1 = SearchQuery(query=q) p1.save() list1 = search_action.search(q, api) return render(request, 'tweets4.html', {'list1': list1, 'q': q}) else: return render(request, 'error_no_query.html', {})
def update(request): q = request.GET['q'] api = api_action.get_api() list1 = search_action.search(q,api) return render(request,'tweets4.html',{'list1':list1,'q':q})
def update(request): q = request.GET['q'] api = api_action.get_api() list1 = search_action.search(q, api) return render(request, 'tweets4.html', {'list1': list1, 'q': q})