How to Solve NameError: name 'method_decorator' is not defined -- django
Erorr: name 'method_decorator' is not defined
NameError: name 'method_decorator' is not defined
Solution: Import the 'method_decorator' module
# Add the following line to the top of your code
from django.utils.decorators import method_decorator
For more information:
django method_decorator