The stack I’m using: Ubuntu 64bit – Django (1.4) – SQLite (can’t remember I installed this one but I think it ships with either Ubuntu or Django) – uwsgi (1.2.3 the server) – Nginx(1.1.19) – Extjs (4.1)
I’ve been using Django for approximately 2 months now and over the last 40 days or so, on three different occasions, I find that ALL tables in my SQLite database are empty (I could write truncated but I don’t know the reason).
It is work in progress so I reshape the models (occasionally) and run manage.py syncdb (maybe once a day) but as I’ve read syncdb doesn’t truncate or delete any table. I have to restart the uwsgi server a lot (every other statement) since it caches the application.
I’m mostly concentrating on the client part so the database is awfully simple with only a few tables and zero relations so far.
Anyone else experiencing this misbehavior?
You should start using South http://south.aeracode.org/