@@ -77,21 +77,21 @@ You can access the database through the Adminer front-end or using a local Postg
77
77
5 . Create a superuser so that you can log into ` http://localhost:8000/admin ` by running the following in your terminal:
78
78
79
79
``` bash
80
- $ docker-compose run --rm app python ./manage.py createsuperuser
80
+ $ docker-compose run --rm app ./manage.py createsuperuser
81
81
```
82
82
83
83
6 . You can populate the database with some random test data for development purposes by running
84
84
85
85
``` bash
86
- $ docker-compose run --rm app python ./manage.py init_data
86
+ $ docker-compose run --rm app ./manage.py init_data
87
87
```
88
88
89
89
All user accounts created by this command have the password ` codebuddies ` .
90
90
91
91
See the ` init_data --help ` command for more information:
92
92
93
93
``` bash
94
- $ docker-compose run --rm app python ./manage.py init_data --help
94
+ $ docker-compose run --rm app ./manage.py init_data --help
95
95
96
96
usage: manage.py init_data [-h] [--clear-db] [--num-users NUM-USERS]
97
97
[--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
157
157
158
158
The following are examples of some common Django management commands that you may need to run.
159
159
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 `
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 `
163
163
164
164
To see the full list of management commands use ` help ` .
165
165
166
166
``` plain
167
- docker-compose run --rm app python ./manage.py help
167
+ docker-compose run --rm app ./manage.py help
168
168
```
169
169
170
170
### Postman
0 commit comments