Accessing a django-piston REST API via a django view within the same project -
Accessing a django-piston REST API via a django view within the same project -
i'm building little web service. showcase service can going build lite-weight interface. i'm having hard time figuring out how rest api , regular django views can play nicely together.
here's setup:
using django-piston build simple crud rest web service. using django views httplib2 get/post to/from web service. both beingness run same django project (and same web server).
right have simple read rest service working in browser. when seek utilize httplib2 django view request hangs.
my questions: -am thinking right way? -is there improve way accomplish this? -should rest web service different project (and web server) rest interface?
any help appreciated!
generally, i'd demonstrate api working via unit tests, rather live views, can see how might not need.
so (in line akonsu's comment above) if you're experiencing problem local dev, it's single threaded devserver that's blocking api running while view executing.
have tried multi-threaded version of runserver? this one?
django rest django-views django-piston
Comments
Post a Comment