Existing Fixtures are Out of Sync with Database Models
michaelhiiva opened this issue · 1 comments
michaelhiiva commented
Summary of the Bug
Two Points:
- The current make_fake_fixtures.py generates data which does not align with current agagd models.
- No data is generated on startup from for the agagd app in docker-compose.
Steps to Reproduce the Behaviour
Point 1
- Run the current
$ docker-compose up
as is.
Point 2
- Load the make_fake_fixtures.py onto the app container.
From within the container:
- Create the fixtures using i.e.,
$ python make_fake_fixtures.py 10 10 10 > /tmp/fake_fixtures.json
- Load the fixtures into the db
$ python manage.py loaddata /tmp/fake_fixtures.json
The Expected Behaviour
Running $ docker-compose up
should provide some basic data so that there is a visible graph, player information, tournaments, etc.
michaelhiiva commented
Resolved with #125.