We need to implement a set of Django management commands to simplify database initialization, testing, and maintenance for the game application.
Requirements
Implement the following management commands:
Technical details
- Place all commands inside the app’s management/commands/ directory.
- Each command should inherit from BaseCommand and include:
- A short help description.
- Console feedback using self.stdout.write() and style helpers.
- Commands like init_game_data and create_test_users must be idempotent (safe to run multiple times).
- Commands should use existing Django models (e.g., Suit, Rank, Card, User, Game).
- Optional commands (export_db, import_db, check_integrity) can be added later if needed.
Testing
python manage.py <command_name>
Definition of Done
We need to implement a set of Django management commands to simplify database initialization, testing, and maintenance for the game application.
Requirements
Implement the following management commands:
Technical details
Testing
Definition of Done