Chown to www-data before running collectstatic and migrate.