i cant find solution to this simple problem. urls.py
path('board/<id>/', board, name="board"),
views.py
def index(request):
if request.method == 'GET':
usuario = request.user
last_board = Usuario.objects.filter(user=usuario.id).values_list("last_board", flat=True)
if usuario.is_authenticated:
return redirect('/board/', last_board )
return render(request, "index.html")
i tried with get, post, without a request.method but its just simple dont pass the arguments, i literally have the same line on another method and works perfectly.
Error
url returned: 127.0.0.1/8000/board/
TypeError at /board/
tablero() missing 1 required positional argument: 'id'