migrating js/jq to django post/get handlers