Reputation: 167
I know there was such a question, but it did not work for me well. I get a message from the console when I do "migrate". How to deal with this error? I would like someone to tell me tpo step by step. I would be very grateful. I am using for virtualenv python 3.4, postgresql 9.6 and powershell.
Upvotes: 0
Views: 928
Reputation: 781
Try using sqlmigrate
instead
python manage.py sqlmigrate <app_label> <migration_name>
(migration name doesn't require the .py
suffix.
And then enter your dbshell
python manage.py dbshell
and then copy and paste the code from the sqlmigrate into the terminal.
Upvotes: 0