How to Solve NameError: name 'reverse' is not defined -- django

Erorr: name 'reverse' is not defined

NameError: name 'reverse' is not defined

Solution: name 'reverse' is not defined

# Add the following line to the top of your code
from django.urls import reverse

 

For more information:
Django reverse

If the error has not been solved: