code_junkie

Django workflow when modifying models frequently

Nov 14th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. manage.py reset appname
  2.  
  3. python manage.py loaddata foo.json
  4.  
  5. class FooTests(TestCase):
  6. fixtures = ['foo.json']
  7.  
  8. def migrate_appa_2_to_3():
  9. for a in appa_2.SomeThing.objects.all():
  10. appa_3.AnotherThing.create( a.this, a.that )
  11. appa_3.NewThing.create( a.another, a.yetAnother )
  12. for b in ...
Add Comment
Please, Sign In to add comment