Skip to content

Commit 04f66f4

Browse files
authored
Update readme.md for windows compatibility. Using python interpreter instead of bash because it ignores line endings and will work on all platforms (#147)
1 parent 38f3688 commit 04f66f4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,21 +77,21 @@ You can access the database through the Adminer front-end or using a local Postg
7777
5. Create a superuser so that you can log into `http://localhost:8000/admin` by running the following in your terminal:
7878

7979
```bash
80-
$ docker-compose run --rm app ./manage.py createsuperuser
80+
$ docker-compose run --rm app python ./manage.py createsuperuser
8181
```
8282

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

8585
```bash
86-
$ docker-compose run --rm app ./manage.py init_data
86+
$ docker-compose run --rm app python ./manage.py init_data
8787
```
8888

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

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

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

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

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

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

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

166166
```plain
167-
docker-compose run --rm app ./manage.py help
167+
docker-compose run --rm app python ./manage.py help
168168
```
169169

170170
### Postman

0 commit comments

Comments
 (0)