psycopg2.DataError: invalid input syntax for integer: “test” Getting error when moving code to test server

后端 未结 2 668
我在风中等你
我在风中等你 2021-02-15 02:57

I\'m running Django 1.11 with Python 3.4 on Ubuntu 14.04.5

Moving my development code to the test server and running into some strange errors. Can anyone see what is wr

2条回答
  •  一整个雨季
    2021-02-15 03:19

    In my case, I have the same issue on the development. This command works for me.

    python manage.py flush
    
    

    Make sure it removes all data from the database. Run this command, it will delete all data from the database and run migration again.

    python manage.py migrate
    
    

提交回复
热议问题