django.db.utils.IntegrityError: UNIQUE constraint failed: rango_category__new.slug

前端 未结 7 2420
渐次进展
渐次进展 2020-12-01 05:47

I\'m learning Django from Tango with Django but I keep getting this error when I type:

python manage.py makemigrations rango
python manage.py migrate
         


        
7条回答
  •  半阙折子戏
    2020-12-01 06:29

    What worked for me was going to the admin and changing the value of duplicate slug, before running the migrations again.

提交回复
热议问题