Any time you change the structure of your database you will need to 'makemigrations' (creates a file that tells the DB what to change and how) and then 'migrate' (actually tells the DB to update).
For instance, if you change your 'User' model to now include their birthday as a datetime field, you would need to go through this process to add a column in the user Table to store the birthdays.
I’ve been watching “theNetNinja” Django tutorial. When do I make a migration?
Any time you change the structure of your database you will need to 'makemigrations' (creates a file that tells the DB what to change and how) and then 'migrate' (actually tells the DB to update).
For instance, if you change your 'User' model to now include their birthday as a datetime field, you would need to go through this process to add a column in the user Table to store the birthdays.
Ok, do I CD into anything or:
./venv/bin/activate
makemigrations
?
just be in the directory that contains your manage.py file.
Then run