Fix https redirects in tests causing failures.

I added some settings overrides to set DEV=True
to avoid superfluous https redirects that the tests
weren't testing.