• Dustin Farris
  • Code
  • About
  • Portfolio
  • My Resumé
  • Contact
  • Facebook badge
  • Twitter badge
  • linkedIn badge
  • Google badge
  • RSS badge
inveniam viam aut faciam

Recent Posts

  • Points to Consider
  • 2012 27" iMac with 32GB Kingston HyperX
  • .rvmrc and binstubs

Archive

  • March 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012

Exporting `auth` Fixtures

Blog ›
2012 ›
April ›
Exporting `auth` Fixtures
Posted on April 13, 2012 by Dustin | (technical)

I’ve discovered, rather painfully, that setting up auth fixtures for testing requires a little care.  Problems result when South migrations interfere with fixture permissions.

The best way to dump auth data is to use natural keys and avoid the permission model altogether:

./manage.py dumpdata -n auth.user auth.group > auth.json
This entry was tagged Django

Dustin Farris Django