This might be a duplicate, but I am unable to find the exact answer.
I am trying to retrieve an object from the resource_uri in django-tastypie
In my api.py I do
from tastypie.resources import get_via_uri
but it gives me the error
ImportError: cannot import name get_via_uri
Any quick suggestions ? Or should I just copy paste the get_via_uri code ? Thanks
get_via_uri
is a Resource
method. You'll need to call it on a resource
instance.