tweaks to make hx work with default django settings WSGI_APPLICATION