Available commands
populate_user_collection
Bulk import collections from Football Kit Archive
cleanup_orphaned_photos
Remove orphaned photo files from storage
setup_beat_schedule
Configure periodic Celery tasks
fetch_home_kits
Fetch and cache kits for homepage display
migrate_photos_to_remote
Migrate photos from local to remote storage
Basic usage
All management commands follow Django’s standard pattern:Common options
Most commands support these common options:--dry-run- Preview actions without making changes--verbose- Show detailed output--help- Display command help
When to use management commands
Bulk data import
Bulk data import
Use
populate_user_collection to import collections from Football Kit Archive for testing or migrating data.Storage cleanup
Storage cleanup
Use
cleanup_orphaned_photos to remove photo files that are no longer referenced in the database, freeing up storage space.Periodic task setup
Periodic task setup
Use
setup_beat_schedule after deployment to configure automatic cleanup tasks that run on a schedule.