You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fixtures/ should be moved within the app for django to be able to find it
it seems that files with the same name are all loaded into the db with upsert logic.
i.e.: in the project we modified a description of a topic category in the initial_data.json, and removed another one
The final DB contained also the removed topicCategory, and the modified description
It means that django first loaded the geonode/fixtures/initial_data.json file, and then the projectXXX/fixtures/initial_data.json file
Activity
etj commentedon Jun 19, 2025
https://docs.djangoproject.com/en/5.2/topics/db/fixtures/#how-fixtures-are-discovered
etj commentedon Jun 19, 2025
fixtures/
should be moved within the app for django to be able to find iti.e.: in the project we modified a description of a topic category in the initial_data.json, and removed another one
The final DB contained also the removed topicCategory, and the modified description
It means that django first loaded the
geonode/fixtures/initial_data.json
file, and then theprojectXXX/fixtures/initial_data.json
file