django-piston
Error handling in Django-Piston
In Django-Piston, is there a good way to do error handling? (Like returning a 400 status code when the caller omits a required GET parameter, or when the param开发者_JAVA百科eters are invalid.)Django-[详细]
2023-02-12 00:51 分类:问答django-piston: request.data availability within DELETE handlers
django-piston appears to create a data attribute on the request object before it gets to the Handler phas开发者_StackOverflow社区e. This data is available, for example, in the PUT and POST handlers by[详细]
2023-02-09 16:16 分类:问答django-piston: properly formatting POST data from a client application
I have a Django app running django-piston for the first time. I\'ve got a handler configured for a model and it\'s rigged for GET and POST.[详细]
2023-02-08 06:00 分类:问答Django-Piston returning JSON/Dictionary as text/plain whenever I change the response type
I\'m debugging some code written by another programmer that uses django-piston to provide an API that returns Python dictionary objects to the caller via JSON. I\'m following the documentation on pist[详细]
2023-02-02 03:46 分类:问答What is the right way to write a django-piston client?
I\'ve been reading a lot on django-piston and using to to make an API for an app I\'m development, but I\'m getting hung up on the client side of the world. I\'ve written the handlers and uri mappings[详细]
2023-01-30 16:17 分类:问答Requesting Token via Django Piston Throws TypeError Exception
When trying to authenticate via OAuth in Django Piston, the following exception is thrown: Environment:[详细]
2023-01-28 07:19 分类:问答How to ensure that a python dict keys are lowercase?
I have a dict that I want to convert in JSON using simplejson. How can I ensure that all the keys of my dict are lowercase ?[详细]
2023-01-26 09:37 分类:问答Django project (apache, mod_wsgi) can't import namespace packages
When installing django-piston from the bitbucket repo with pip, I noticed something weird (first indented line of the output):[详细]
2023-01-25 09:37 分类:问答Django-Piston - I Can't POST on a model with a ForeignKey
I\'m trying t开发者_C百科o set up piston on my Django project. I ran into a brick wall when I tried to POST (create) a new entry on a model that contains a ForeignKey: location.[详细]
2023-01-21 10:56 分类:问答How do I save a Django Model from request.POST?
I\'m trying to save a new object from a django model using a POST data querydict. This is part of a PISTON handler. I\'ve seen this done in numerous examples, but I just can\'t get it to work.[详细]
2023-01-21 07:14 分类:问答