Wrong redirection of url in django – Jquery ajax
Updated Question: Wrong redirection of URL in Django. I have this: views.py. def graph(request): if request.method == 'POST' and 'text' in request.POST: print("testing....") print(request.POST.get('text')) name = request.POST.get('text') context = { 'name': name, } print(context) return render(request, 'StockPrediction/chart.html', context) else: return…