Skip to content Skip to sidebar Skip to footer

Django Typeerror: Get() Got An Unexpected Keyword Argument 'quiz_name'

I am trying to access a url from flutter webview , however, I am getting the following error. When I try to access this directly, I dont see any error. File '/home/quiz/views.py',

Solution 1:

Since you're using a paramaterquiz_name in the url, it is being passed to your corresponding view. The current signature of your get method doesn't accept any additional parameters.

You may fix this by changing the method signature to:

defget(self, request, *args, **kwargs):
    quiz_name = kwargs.get('quiz_name')
    ...

Post a Comment for "Django Typeerror: Get() Got An Unexpected Keyword Argument 'quiz_name'"