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

Solution: Import the 'xframe_options_exempt' module

To Solve the error, add the following line to the top of your code.

from django.views.decorators.clickjacking import xframe_options_exempt

 

For more information:
Python django xframe_options_exempt