API and Django upgrade