Fixture extraction

15 views
Skip to first unread message

Anton Pirker

unread,
Nov 14, 2013, 3:12:31 AM11/14/13
to Django Users mailing list
Hello!

I have a fairly large production database (about 40GB) and I want to extract a sample of it as fixtures so I can use this sample for development. 

The optimal solution would be that I can give a number of auth_users to a script, and it will extract all data neccessary to have a complete set of data for the given users.

A plus would be, if the email addresses of the users would be anonymized and the password would be set to some default password.

Has anybody used any of the fixture packages [1] available?
Can anybody recommend a package, or an approach on how to do this?

Thanks in advance,
Anton




--
DI(FH) Anton Pirker

---------------------------------------------
IGNAZ Softwaremanufaktur
agile software development 

wurlitzergasse 58/20
a-1160 wien
tel: +43 699 1234 0 456
skype: antonpirker

http://anton-pirker.at
http://ignaz.at

Currently working on: Relaunch of http://bikemap.net
My latest project: http://creativesociety.com

Javier Guerra Giraldez

unread,
Nov 14, 2013, 3:18:36 AM11/14/13
to django...@googlegroups.com
On Thu, Nov 14, 2013 at 3:12 AM, Anton Pirker <an...@ignaz.at> wrote:
> The optimal solution would be that I can give a number of auth_users to a
> script, and it will extract all data neccessary to have a complete set of
> data for the given users.
>
> A plus would be, if the email addresses of the users would be anonymized and
> the password would be set to some default password.


check the serializers doc. it's not hard to get a queryset and export
as a fixture.

--
Javier
Reply all
Reply to author
Forward
0 new messages