Python - How to import 'require_http_methods' -- django

Import require_http_methods

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

from django.views.decorators.http import require_http_methods

 

For more information about require_http_methods:
django require_http_methods