You can wrap it in your own urls.pyaccording to the procedure in specifying the presentation cache in the urlconf manual in the Django documentation. In my case, I had my Piston API in a separate module and I prefer to use Varnish instead of the built-in Django caching structure, so I used this approach in mine api/urls.py(which belongs to my main one urls.py) to set cache headers I wanted :
from django.views.decorators.cache import cache_control
cached_resource = cache_control(public=True, maxage=30, s_maxage=300)
urlpatterns = patterns('',
url(r'^myresource/$', cached_resource(Resource(MyHandler))),
)