Skip to content

Commit beacf39

Browse files
Merge pull request #312 from rajvee123/docs/populate-challenges-command
docs: document populate_challenges management command
2 parents 7bc2d0d + 14f36d8 commit beacf39

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ First, Clone the repository using GitHub website or git in Terminal
6565
1. Install [Docker](https://www.docker.com)
6666
2. Run `docker-compose up` or `docker-compose up -d`
6767

68+
## Populate Challenge Data
69+
70+
PyGoat stores challenge definitions in `challenge/challenge.json`.
71+
To populate the `Challenge` table in the database from this file, use the
72+
built-in Django management command:
73+
74+
### Using Docker Compose
75+
76+
```bash
77+
docker compose exec web python manage.py populate_challenges
78+
79+
6880
### Build Docker Image and Run
6981
1. Clone the repository   `git clone https://github.com/adeyosemanputra/pygoat.git`
7082
2. Build the docker image from Dockerfile using   `docker build -f Dockerfile -t pygoat .`

0 commit comments

Comments
 (0)