This question asks where the Django installation is.
This question is about the table django_migrations
.
I've looked under the path from the command django in the interactive console, where I find a subdirectory db
, along with middleware
, etc.
But I've no idea where this table django_migrations
(i.e. the data in it) is in fact kept.
I want to know firstly because I want to know what happens if this data is lost. I'm just learning Django and I don't quite understand how much of a problem this would be.
The path to the Django location is under a directory in my home folder where I keep my Python virtual environments, the name of which begins with a ".". I tend to exclude such directories from my backup plans...
Having just deleted db.sqlite3 in my project I see that it gets regenerated when you do migrate
, together with a list of (in my present case) some 15 migration operations. I'm quite mystified by some of these: the first 10 or so seem to have occurred before I started doing anything to my models.py file. Are they documented or explained somewhere?