Django 1.5 changed the syntax for url template tags
Make PrettyJSONEncoder work with Django 1.5
Make it work with fresh tastypies