Switch to django management commands for the database maintenance.