A statistical baseball simulation.
Install Python libraries:
uv sync
To create and populate the database run: (delete the database file if it already exists)
- Migrate to saved state
echo "migrate..."
python manage.py migrate- Publish migrations and migrate BallGame app
echo "make migrations..."
python manage.py makemigrations BallGame
python manage.py migrate BallGameIf not already done, create super-user with
python manage.py createsuperuser
If unsure, try with "admin/admin"
Run tests with
python manage.py test BallGame
The database player is created when running the second migration, 'player_userattributes'.
Activate with
source ./venv/bin/activate
Deactivate with
deactivate
This project uses Crispy Forms for Bootstrap:
https://django-crispy-forms.readthedocs.io/en/latest/