Davdei
Davdei

Reputation: 167

Django 1.11 - It must be in YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."]

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.enter image description here

enter image description here

Upvotes: 0

Views: 928

Answers (1)

drew
drew

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

Related Questions