Skip to content

Commit

Permalink
Docs: Add instructions for making changes to models in README
Browse files Browse the repository at this point in the history
  • Loading branch information
SverreNystad committed Jan 6, 2024
1 parent 5fc8f80 commit 3b5c7e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ http://127.0.0.1:8000/admin/

Enjoy!

## When making changes to the models

When making changes to the models, you need to create a migration file and migrate the database.

```bash
docker-compose run tutorai python manage.py makemigrations
docker-compose run tutorai python manage.py migrate
```


## How to create a new application in the backend

To create a new application This command creates a new directory named "api" within your "backend" directory, along with the basic files needed for a Django app.
Expand Down

0 comments on commit 3b5c7e0

Please sign in to comment.