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.
Asked
Active
Viewed 896 times
0

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 Answers
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
-
-
-
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