Add more information to the README

This commit is contained in:
Mark Veidemanis 2022-07-21 13:46:26 +01:00
parent 4ddeb3f9a0
commit 9ff2c30482
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 18 additions and 0 deletions

View File

@ -33,3 +33,21 @@ Starting development server at http://127.0.0.1:8001/
Quit the server with CONTROL-C. Quit the server with CONTROL-C.
``` ```
As you've guessed, you can access it at http://127.0.0.1:8001/ As you've guessed, you can access it at http://127.0.0.1:8001/
## Troubleshooting
Sometimes Django is difficult.
> `django.db.utils.OperationalError: no such table: core_user`
This means you haven't yet run the migrations. See above.
### Updating the models
If you make changes to the database models, you will need to create new migrations.
Do this like so:
```shell
(env) $ python manage.py makemigrations
```
Afterwards, we can apply them as normal.
```shell
(env) $ python manage.py migrate
```