django.db.utils.ProgrammingError: relation already exists

前端 未结 12 799
一向
一向 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 14:51

    This works pretty fine

    ./manage.py migrate --fake default
    

    Source: -https://github.com/nijel/weblate/issues/587

提交回复
热议问题