Django test not loading fixture data

后端 未结 4 1075
面向向阳花
面向向阳花 2021-02-07 06:40

I have written tests for a Django project that i am working on, but one particular fixture fails to load. The fixture is generated using dumpdata and i havent fiddled with it at

4条回答
  •  北海茫月
    2021-02-07 07:07

    Check if the fixture is really in the right place. From the docs:

    Django will search in three locations for fixtures:

    1. In the fixtures directory of every installed application
    2. In any directory named in the FIXTURE_DIRS setting
    3. In the literal path named by the fixture

提交回复
热议问题