Django: Reverse for '*' with arguments '()' and keyword arguments '{a,b}' not found. 1 pattern(s) tried: ['order/pay/(?P<pk>\\d+)/$'] -
i have views. 1 triggers overview of guest's orders. , 1 sets order paid , should go overview: @login_required def guest_detail(request, pk): guest = get_object_or_404(guest, pk=pk) open_orders = order.objects.filter(guest = guest, is_paid=false) paid_orders = order.objects.filter(guest = guest, is_paid=true) if request.method == "post": form = registerguestform(request.post, instance=guest) if form.is_valid(): guest = form.save(commit=false) guest.save() #post.published_date = timezone.now() return redirect('guest_detail', pk=guest.pk) else: form = registerguestform(instance=guest) context = {'form': form} context['open_orders'] = open_orders context['paid_orders'] = paid_orders return render(request, 'hotel/guest_detail.html', context) this view rendered template: <div class="col-md-8 col-xs-12"...