GOT IT WORKING. It was a problem with the default tastypie read only
authorization
On Monday, April 8, 2013 12:00:35 PM UTC+1, psychok7 wrote:
>
> it was a quoting problem.. but now i get another error:
>
> HTTP/1.0 401 UNAUTHORIZED
>
> curl --dump-header - -H "Content-Type: application/json" -X
it was a quoting problem.. but now i get another error:
HTTP/1.0 401 UNAUTHORIZED
curl --dump-header - -H "Content-Type: application/json" -X POST --data
'{"city": "/api/smart/city/35/", "comment": "teste do php", "id": "4",
"resource_uri": "/api/smart/rating/4/", "rating": "3","user_id":
"/ap
guys i am having problems creating a new resource with django tastypie. i
get the following error:
class RatingResource(ModelResource):
city = fields.ForeignKey(CityResource, 'city')
user_id = fields.ForeignKey(UserResource, 'user')
class Meta:
queryset = Rating.objects.all()
3 matches
Mail list logo