satchless

Django unable to load test fixtures, IntegrityError

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 03:23:33
问题 I'm using Saleor/Satchless to power and e-commerce site (inherited the project). I couldn't find a Saleor mailing list so posting here instead. I dumped the DB to create some test fixtures. ./manage.py dumpdata -e contenttypes -e sessions -e south -e > payments_data.json When I run the tests and django tries to load the fixtures it barfs this up. I'm using Postgres as the DB, and although not terribly familiar, it seems like there might be a problem with the order in which data is being

Django unable to load test fixtures, IntegrityError

旧城冷巷雨未停 提交于 2019-12-05 01:03:14
I'm using Saleor / Satchless to power and e-commerce site (inherited the project). I couldn't find a Saleor mailing list so posting here instead. I dumped the DB to create some test fixtures . ./manage.py dumpdata -e contenttypes -e sessions -e south -e > payments_data.json When I run the tests and django tries to load the fixtures it barfs this up. I'm using Postgres as the DB, and although not terribly familiar, it seems like there might be a problem with the order in which data is being loaded Any ideas how to get around it? ==================================================================