Python - How to import 'method_decorator' -- django

Import method_decorator

To import method_decorator, Add the following line to the top of your code.

from django.utils.decorators import method_decorator

 

For more information about method_decorator:
django method_decorator