1👍
✅
The easiest way is to use django test client
>>> from django.test import Client
>>> c = Client()
>>> response = c.get('/')
>>> response.content
Source:stackexchange.com