def test_view_flatpage(self):
        response = self.client.get('/flatpage_root/flatpage/')
        self.assertContains(response, "<p>Isn't it flat!</p>")
A flatpage can be served through a view, even when the middleware is in use
dataset/ETHPy150Open django/django/tests/flatpages_tests/test_csrf.py/FlatpageCSRFTests.test_view_flatpage