tastypie Questions
5
Solved
I see 'Sorry, not implemented yet. Please append "?format=json" to
your URL.'. I need always append string "?format=json". Can I make a
output in JSON by default?
Regards,
Vitaliy
2
Solved
I have a tastypie api that I'm working on and in the list views for my api resources I'd like to get the entire list of data without pagination applied, regardless of the number of objects in the l...
Kinsler asked 3/4, 2013 at 18:43
1
Solved
I'm building up an app that should allow the user to sign up / sign in with Facebook and then he should be able to login (always via Facebook) to the "main" website
To be honest it's a bit more co...
Riffle asked 30/5, 2013 at 11:4
2
Solved
I have a REST API built using Django and TastyPie. My goal is to add a task to my job queue when new data is POSTed to a particular model.
I was going to hook into post_save and trigger then but t...
3
Solved
My code below kinda works, it creates the User object and saves but it doesn't save the password:
class CreateUserResource(ModelResource):
class Meta:
allowed_methods = ['post']
object_class = ...
2
Solved
In Django project i get two objects when i receive the JSON response
data.meta and data.objects
This is my Resource
class MyResource(ModelResource):
def dehydrate(self, bundle):
bundle.data["a...
2
Solved
I'm having trouble implementing record-level authorization with tastypie 0.9.12+.
My setup looks something like this:
Model
class UserProfile(models.Model):
def __unicode__(self):
return self....
Tutelage asked 27/3, 2013 at 13:42
2
Solved
I'm trying to do a POST using curl:
curl --dump-header - -H "Content-Type: application/json" -X POST --data '{"item_id": "1"}' http://www.mylocal.com:8000/api/1/bookmarks/
However, request.POST ...
1
Solved
I'm trying to create a resource (Observation) that has 0 to unlimited comments. I'm stuck at the following error:
"error": "The model '<Observation: Observation object>' has an empty attrib...
Schwann asked 14/4, 2013 at 12:41
2
Solved
In Django, when I request a resource that has a many-to-many relationship, I end up getting all the items in child part of the relationship, even those not directly related to the parent. It'll be ...
1
Solved
I am currently working on implementing an API into my Django project and Tastypie seemed like it would be most suitable.
What I can't seem to work out is how to expose a function within my model u...
2
Solved
I'm writing an API using django-tastypie. I have two custom permisions issues that I'm hoping django-guardian can fix.
I have two user groups Clinicians and Patients. Clinicians should be able to ...
Japanese asked 18/3, 2013 at 13:3
1
Solved
Im using django-tastypie and I'm very happy with it. But I really want to get the self documenting api feature from Django Rest Framework.
What solutions exist (or have people built) to get ...
Riffraff asked 11/3, 2013 at 10:56
4
Solved
When user authenticates in Django, how do I check that from tastypie?
Once user logs on, the view includes some JS that pulls data from API, which is backed by tastypie.
I have basic authentica...
7
Solved
I have Page model with GFK.
class Page(models.Model):
title = models.CharField(max_length=200)
content_type = models.ForeignKey(ContentType,null=True,blank=True)
object_id = models.CharField(ma...
Haft asked 18/11, 2011 at 18:31
1
Solved
I'm trying to use the example here: http://django-tastypie.readthedocs.org/en/latest/cookbook.html#nested-resources
for some reason i get:
cached_obj_get() takes exactly 2 arguments (1 given)
...
Splenitis asked 1/3, 2013 at 11:50
2
Solved
I have a property in a Django Model that I'd like to expose via a TastyPie ModelResource.
My Model is
class UserProfile(models.Model):
_genderChoices = ((u"M", u"Male"), (u"F", u"Female"))
us...
Colet asked 31/1, 2012 at 10:33
3
Solved
I'm using require.js to help organize my Backbone.js based application.
I'm trying to figure out the right way to use a 3rd party javascript library that is not AMD compatible with require.js
The...
Photography asked 30/12, 2011 at 3:26
2
Solved
I'm trying to make creating new instances with Tastypie work, but I keep getting this error with the foreign keys. Here is my stuff:
Models:
class SuggestionVote(models.Model):
created_by_user =...
1
I need to list the working hours of each employee, but i'm getting:
The model '' has an empty attribute 'work_journey' and doesn't allow a null value.
on:
/rest/tastypie/employee/?format=json
m...
1
Solved
I'm building a django tastypie api, and I have a problem with adding elements in ManyToMany relationships
Example,
models.py
class Picture(models.db):
""" A picture of people"""
people = models...
3
Solved
I'm trying to use auto-doc tool to generate API doc for Tastypie REST API. I tried Tastytool, but it seems not showing the API's result parameters but the model's columns. Then I tried Sphinx...
Shirline asked 12/10, 2012 at 3:43
2
Solved
I'm planning a site with Django and Tastypie for the REST API, and
I'm having a tough time figuring out the "right" way to include
child resources in a returned resource.
As a sandbox, I made a sm...
2
So I am trying to understand what to do here... I am doing a POST call to my Django server from iOS and I keep getting the 403 Error (Invalid CSRF Token). I am thinking about implementing a functio...
Ova asked 21/11, 2012 at 1:29
2
Solved
In Django and Tastypie I'm attempting to figure out how to properly deal with Many to Many "through" relationships, like those found here: https://docs.djangoproject.com/en/dev/topics/db/models/#ex...
© 2022 - 2024 — McMap. All rights reserved.