Skip to content
Advertisement

TypeError: not enough arguments for format string in python

It shows an error like TypeError: not enough arguments for format string, how can solve this issue.

views.py

urls.py

Advertisement

Answer

In your queryset you have more than one %s although you pass %(user_id) one time

you should pass all parameter in format string you defined

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement