0

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

Davdei
  • 157
  • 1
  • 2
  • 10
  • Did you run makemigration afterwards, can you show us relevant last migration. Also try to copy paste your code instead sending snips. – iklinac May 04 '17 at 15:00
  • First I run "makemigrations and then "migrate". Do You want code, my last migrations? Or alls my migrations from folder "migrations" snips? – Davdei May 04 '17 at 15:05

1 Answers1

0

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.

drew
  • 771
  • 1
  • 4
  • 11
  • This not working, all the time I get the same message. – Davdei May 04 '17 at 15:14
  • Yes, I have added – Davdei May 04 '17 at 15:19
  • Hm I do not understand until the end. Do you mean data in django admin panel, for "added" field? – Davdei May 04 '17 at 15:23
  • Yes, if I could see what the data in the "added" field currently looks like it might help to fix the problem – drew May 04 '17 at 15:30
  • Aaa ok. Now I undrestand. When I trying data I receives message in the browser: ERROR: column "added" relationship "page_summary" does not exist LINE 1: INSERT INTO "page_summary" ("title", "added") VALUES ('Save .. – Davdei May 04 '17 at 15:44