{"id":174,"date":"2014-09-24T20:21:23","date_gmt":"2014-09-24T20:21:23","guid":{"rendered":"http:\/\/ifmbanm.com\/blog\/?p=174"},"modified":"2014-09-24T20:21:23","modified_gmt":"2014-09-24T20:21:23","slug":"tastypie-and-migrations","status":"publish","type":"post","link":"https:\/\/ifmbanm.com\/blog\/?p=174","title":{"rendered":"Tastypie and migrations"},"content":{"rendered":"<p>For anyone else who&#8217;s run into this: the latest TastyPie assumes you&#8217;re running Django with built-in migrations.  If you&#8217;re not (like me), you&#8217;ll get an error <\/p>\n<p>    from django.db import models, migrations<br \/>\nImportError: cannot import name migrations<\/p>\n<p>Simple fix: in \/lib\/python2.7\/site-packages\/tastypie\/, rename &#8220;migrations&#8221; to something else (I used &#8220;django_migrations&#8221;) and &#8220;south_migrations&#8221; to &#8220;migrations&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For anyone else who&#8217;s run into this: the latest TastyPie assumes you&#8217;re running Django with built-in migrations. If you&#8217;re not (like me), you&#8217;ll get an error from django.db import models, migrations ImportError: cannot import name migrations Simple fix: in \/lib\/python2.7\/site-packages\/tastypie\/, rename &#8220;migrations&#8221; to something else (I used &#8220;django_migrations&#8221;) and &#8220;south_migrations&#8221; to &#8220;migrations&#8221;.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/174"}],"collection":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=174"}],"version-history":[{"count":0,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ifmbanm.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}