tastypie Questions

3

Solved

I am able to do GET to work with SessionAuthentication and Tastypie without setting any headers except for content-type to application/json. HTTP POST however just fails even though the Cookie in t...
Rizika asked 13/3, 2013 at 14:53

3

Solved

my first question here : So I'm using tastypie to have api's for my app. I want to be able to use tastypie to render json and then include that in a django view so that I can bootstrap my app's d...
Connoisseur asked 17/10, 2011 at 14:45

2

I'm seeing some usual goings on in my application. For no reason my server slows down when I have little or no traffic. After lots of trial and error I found my problems disappeared when I removed ...
Labrie asked 5/4, 2014 at 21:33

3

Solved

How do I configure Tastypie to treat a field as unique? My expectation would be to receive some sort of non-500 error (possibly a 409 conflict?) as a response if I try to insert duplicate entries f...
Rabe asked 15/9, 2011 at 18:57

1

Solved

I have searched about this issue a lot and gone through a bunch of related questions on Stack Overflow, but there doesn't seem to be a definitive answer about how to implement many-to-many relation...
Kyoko asked 24/3, 2014 at 4:40

2

Solved

Apologies for the beginner question. I'm a little bit confused about the general approach to using RESTful services in conjunction with distinct users. In particular, I'm primarily concerned with ...
Caphaitien asked 18/5, 2012 at 3:43

8

Solved

I have already asked a question about IP Authentication here: TastyPie Authentication from the same server However, I need something more! An IP address could be very easily spoofed. Scenario:...
Empire asked 18/2, 2014 at 15:0

3

Solved

I'm trying to install tastypie for Django. I also have South installed. But when I migrate I get some weird type error. ./manage.py migrate tastypie Running migrations for tastypie: - Migrating ...
Ferry asked 10/8, 2013 at 14:13

3

We're porting our API from Django - Piston to Django-TastyPie. Everything went smoothly, 'till we got to this: urls.py of the app url(r'^upload/', Resource(UploadHandler, authentication=KeyAuthe...
Aviary asked 28/7, 2011 at 12:9

2

Solved

When a new item is created using Tastypie, I want to be able to add it to a user's attribute which is a many-to-many field. RIght now my obj_create looks like this: def obj_create(self, bundle, r...
Preterit asked 9/4, 2012 at 7:22

1

Solved

I have an API in TastyPie thats consumed on the same domain. I only want to allow requests to come from my server. TastyPie has a number of different Authentication options, however I cannot use ...
Helpmeet asked 11/2, 2014 at 16:57

1

Solved

I have a problem connecting with my webserwisem PhoneGap (Django + TastyPie). My PhoneGap - version - 3.3.0. Calling the POST or GET with plain html - everything is ok The problem starts when I mo...
Callum asked 7/2, 2014 at 15:42

1

Solved

When there are uncaught exceptions in my Django project the log only shows a simple "HTTP 500" message. The HTTP response will contain the full stack trace as HTML but this is not very useful when ...
Souther asked 17/1, 2014 at 2:40

2

I'm using tastypie and I want to create a Resource for a "singleton" non-model object. For the purposes of this question, let's assume what I want the URL to represent is some system settings tha...
Gametocyte asked 5/1, 2014 at 11:51

2

I have an Adobe Air mobile application that communicates with Django via TastyPie. To use the app people have to register first. Therefore they have to supply their email and password. Afterwards t...
Anni asked 6/9, 2012 at 8:55

2

I just want to send the following JSONobjects to my API backend: { "username":"alex", "password":"password" } So I wrote the following function, using Angular $http: $http( { method: 'POST',...
Lithograph asked 30/8, 2013 at 8:14

3

Solved

I Am just starting with django tastypie, and I Am enthousiastic about it. My question: I Am searching for the same feature as in the admin view: specify for foreignkey fields what to see in the lis...
Castaway asked 23/11, 2011 at 13:27

2

I'm writing a Django app that uses django-allauth for Facebook integration, and uses django-tastypie for a backend for an iOS app. The iOS app will use the native Facebook iOS SDK. I'd like to be a...
Stroganoff asked 13/8, 2013 at 17:8

2

I want to do sample application with Tastypie framework. I added Tastypie to Installed app and modified urls.py as required, adding from tastypie.api import Api. But when I open http://localhost:8...
Staten asked 12/8, 2013 at 15:43

2

Solved

There's a possibility to append ?limit=0 phrase at the end of the API URL to make the query not limit the response. Is there any way to mae it a default behavior, e.g. http://my.api.com/resources/ ...
Forte asked 14/8, 2013 at 21:24

1

Solved

I have a Django Tastypie API set up. I would like to query the database for the count of objects that match a name. Is this possible on an existing model resource, or do I need to set up a new ...
Stumper asked 23/8, 2013 at 10:20

3

Solved

I'm designing a website in which people will sign on as users and potentially be in multiple groups, which come in a couple of different types. I wanted to both have a website that people can use d...
Betthel asked 7/7, 2013 at 3:9

2

I would like to return some JSON responses back instead of just returning a header with an error code. Is there a way in tastypie to handle errors like that?
Bounteous asked 10/1, 2012 at 17:27

4

Solved

I want to create a view using tastypie to expose certain objects of the same type, but with the following two three twists: I need to get the objects using three separate queries; I need to add ...
Suttle asked 11/6, 2011 at 18:30

2

Solved

I am using the facade-like pattern described here: http://django-tastypie.readthedocs.org/en/latest/non_orm_data_sources.html def obj_get(self, request=None, **kwargs): rv = MyObject(init=kwargs[...
Nena asked 5/6, 2012 at 14:24

© 2022 - 2024 — McMap. All rights reserved.