S
S
sortfact3332020-11-16 08:33:05
Django
sortfact333, 2020-11-16 08:33:05

How to pass two arguments by reference?

I need to pass two id
's, one is the user's id and the second is the id of the page to return to.

path('<int:page_id>/<int:user_id>/add/', views.add, name = 'add')
def add(request,page_id, user_id):

But django writes that 1 argument is missing.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-11-16
@bacon

So somewhere you pass one, look at the place on which you swear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question