This middleware is mostly redundant: * redirecting to canonical URLs can be done more simply in Apache * appending a forward slash is a default in CommonMiddleware now * we're no longer using Squid cache May need to update Apache to strip/redirect trailing "index.html".
874 B
874 B
To-do
- ask Denver about why so many license files
- serve a 400 in Apache for a hostname we don't explicitly support
- use
<detail>elements for supporter page hidden sections, rather than complex jQuery - or consider Alpine.js - replace
internalNavigatewith inline flexbox layout - add tests for main pages returning 200
Done
- remove
ForceCanonicalHostnameMiddlewareby ensuring canonical redirect and HTTPS redirect is done by Apache - standardise settings to replace
settings.pyanddjangocommonsettings.pywithsettings/prod.pyand moveSECRET_KEYto an environment variable - migrate to Django 4.2 LTS
- review
apache2directory - may be unused - add deployment script that runs migrations and collects static files
- switch
ParameterValidatorto useSECRET_KEYif possible to minimize non-standard settings - install staticfiles app