ProgrammingError: relation “django_session” does not exist error after installing Psycopg2

前端 未结 2 1989
终归单人心
终归单人心 2021-02-02 07:36

I started to develop a Django base web application. Everything were fine until I installed Psycopg2 for my database which I created in PstgreSql. Now w

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 07:55

    If you change the database, you should create database for the new database.

    Use manage.py migrate command. (or manage.py syncdb if you used it for old database).

提交回复
热议问题