6👍
✅
Django uses Clickjacking protection with ‘django.middleware.clickjacking.XFrameOptionsMiddleware’.
To allow the site to be embedded in an iframe just erase that middleware from settings.py
https://docs.djangoproject.com/en/dev/ref/clickjacking/#clickjacking-prevention
Source:stackexchange.com