Extracting fixture for one specific object
Posted
by emostar
on Stack Overflow
See other posts from Stack Overflow
or by emostar
Published on 2010-03-23T06:17:47Z
Indexed on
2010/03/23
6:23 UTC
Read the original article
Hit count: 173
django
I want to extract the necessary code to recreate a set of Models from my production environment to my testing environment. There is something wrong in the data that causes an Exception, and I need the data in my local environment to do debugging.
I looked at django-extensions and the dumpscript command is almost what I want. But I have many other objects connected to this one via foreign keys.
Is there an easy way to extract the object by primary key, and all other objects that are related to it?
© Stack Overflow or respective owner