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

前端 未结 2 1962
终归单人心
终归单人心 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).

    0 讨论(0)
  • 2021-02-02 07:58

    You can alternatively migrate just the sessions app if you have already run migrate and still getting the error

    python manage.py migrate sessions
    
    0 讨论(0)
提交回复
热议问题