[Django]-Django tutorial : TypeError at /polls/3/vote/ reverse() takes no keyword arguments

17👍

You are overriding django reverse method with this line of code:

from audioop import reverse

to use django’s reverse you should import it:

from django.urls import reverse

also if you still need audioop’s reverse you can use synonym with as syntax:

from audioop import reverse as audio_reverse

Leave a comment