django.db.utils.ProgrammingError: relation already exists

前端 未结 12 815
一向
一向 2020-12-23 14:11

I\'m trying to set up the tables for a new django project (that is, the tables do NOT already exist in the database); the django version is 1.7 and the db back end is Postgr

12条回答
  •  遥遥无期
    2020-12-23 15:05

    I found this problem in web2pyframework in models/config.py .

    Change

    settings.base.migrate = True

    on config file to

    settings.base.migrate = False

    Problem solved.

提交回复
热议问题