Welcome to the Django backend!
There's nothing to be done here for the interview set-up, but feel free to look around! 👀
For all operations, run them from the project root folder.
From the project root run script/django/setup
From the project root run script/django/start
- Database console
./django/manage.py dbshell
- List tables
.tables
- Show table contents
.dump table_name
Migrations in Django rely on inferring differences between your model definitions and table schemas. They don’t work particularly well with SQLite (the default database for this project).
We recommend you nuke and recreate your DB for schema changes:
rm django/db.sqlite3 && ./django/manage.py makemigrations && ./django/manage.py migrate