From 9ff2c30482ef3855ceab8493d37ade24de78bc44 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 21 Jul 2022 13:46:26 +0100 Subject: [PATCH] Add more information to the README --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index dd43b3d..b8776f6 100644 --- a/README.md +++ b/README.md @@ -33,3 +33,21 @@ Starting development server at http://127.0.0.1:8001/ Quit the server with CONTROL-C. ``` 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 +``` \ No newline at end of file