[Answer]-Django manage.py syncdb : expected string or buffer?

1👍

So, the trick is that delete the database file is not enough : the process of migration create some files on the [migration] directory under the app. I moved all these files into another directory to help, but it didn’t seem to be sufficient : I also had to precise the name of the app on the 3 operations :

1) python manage.py makemigrations APP-NAME
2) python manage.py migrate       APP-NAME
3) python manage.py syncdb

With everything deleted (database file + migration history) and the 3 operations applied, I have a brand new database to enjoy again !

Leave a comment