@@ -77,21 +77,21 @@ You can access the database through the Adminer front-end or using a local Postg
77775 . 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
83836 . 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
8989All user accounts created by this command have the password ` codebuddies ` .
9090
9191See 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
9696usage: 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
158158The 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
164164To 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