How to Solve NameError: name 'reverse_lazy' is not defined -- django
Solution: Import the 'reverse_lazy' module
To Solve the error, add the following line to the top of your code.
from django.urls import reverse_lazy
For more information:
Python django reverse_lazy