Remove settings that aren't used any longer or don't work.
Clean up settings a bit. They're still a mess.
Take advantage of XFrameOptionsMiddleware.
Replace redirect_to by RedirectView.
Modernize legacy app.
Remove unused imports.