Skip to content

Update readme.md for windows compatibility. #147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ You can access the database through the Adminer front-end or using a local Postg
5. Create a superuser so that you can log into `http://localhost:8000/admin` by running the following in your terminal:

```bash
$ docker-compose run --rm app ./manage.py createsuperuser
$ docker-compose run --rm app python ./manage.py createsuperuser
```

6. You can populate the database with some random test data for development purposes by running

```bash
$ docker-compose run --rm app ./manage.py init_data
$ docker-compose run --rm app python ./manage.py init_data
```

All user accounts created by this command have the password `codebuddies`.

See the `init_data --help` command for more information:

```bash
$ docker-compose run --rm app ./manage.py init_data --help
$ docker-compose run --rm app python ./manage.py init_data --help

usage: manage.py init_data [-h] [--clear-db] [--num-users NUM-USERS]
[--num-tags NUM-TAGS]
Expand Down Expand Up @@ -157,14 +157,14 @@ If you would like to tail the logs in the console then you remove the detach fla

The following are examples of some common Django management commands that you may need to run.

- Make Migrations: `docker-compose run --rm app ./manage.py makemigrations`
- Merge Migrations: `docker-compose run --rm app ./manage.py makemigrations --merge`
- Run Migrations: `docker-compose run --rm app ./manage.py migrate`
- Make Migrations: `docker-compose run --rm app python ./manage.py makemigrations`
- Merge Migrations: `docker-compose run --rm app python ./manage.py makemigrations --merge`
- Run Migrations: `docker-compose run --rm app python ./manage.py migrate`

To see the full list of management commands use `help`.

```plain
docker-compose run --rm app ./manage.py help
docker-compose run --rm app python ./manage.py help
```

### Postman
Expand Down