End-to-end tests belong in the application.
Functional test is moving a bit further along, but ideally Django would start with a fresh database for tests. May be possible to mock this thing.