tastypie Questions

3

Solved

So we currently have a website that was created using Django. Now, we would like to create a native iOS app that uses the same backend, so we don't have to re-code the whole thing. From my understa...
Creationism asked 19/10, 2012 at 19:28

1

I keep getting the below errors in my sentry exceptions AttributeError: 'RegexURLResolver' object has no attribute '_urlconf_module' And the trace only points to code withing the django code bas...
Sporozoite asked 22/6, 2013 at 21:37

2

Solved

I am developing an api for a webapp. I was initially using tastypie and switched to django-rest-framework (drf). Drf seems very easy to me. What I intend to do is to create nested user profile obje...
Ellie asked 5/8, 2015 at 6:12

2

Solved

I would like tastypie to create a UserProfileResource as a result of me POSTing to a UserResource. models.py: class UserProfile(models.Model): home_address = models.TextField() user = models.F...
Wylma asked 14/5, 2012 at 11:30

2

I'm trying to implement a Tastypie Resource that allows GET & POST operations following a per user-permission policy, the model is pretty simple (similar to the Note model in Tastypie documenta...
Hwu asked 1/3, 2013 at 20:12

4

I have a table into mysql that is the type TextField (django) by using the JSONField. This is how my model looks from django.db import models from json_field import JSONField class Model(models.M...
Misplace asked 17/1, 2013 at 19:5

6

Solved

I need to create a Python REST/JSON web service for an iOS app to interact with. There will be no front end on the web. What will be the fastest, most lightweight framework to use for this? Learni...
Theotheobald asked 30/10, 2011 at 4:58

3

Solved

I'm working on a API for a project and I have a relationship Order/Products through OrderProducts like this: In models.py class Product(models.Model): ... class Order(models.Model): products =...
Elmer asked 7/12, 2012 at 17:9

1

Solved

I wrote a machine learning application in Django so a user can specify in a form some parameters and train a model. Once the model is trained, I want to serve requests like: curl http://localhost:...
Lumisterol asked 5/1, 2015 at 19:18

3

I have to write RESTFUL web-services with authentication in python using django framework which will be consumed by web based clients and mobile native apps (Android and IOS). the simple example w...
Porphyry asked 18/8, 2012 at 1:52

3

I have a Tastypie ModelResource which gets its fields from a regular Django Model. I would like to make certain fields read-only on the Tastypie resource, even though they are writeable in the unde...
Inanna asked 27/4, 2012 at 17:11

1

Solved

How do I make the below token based authentication call in Postman? curl -H "Authorization: ApiKey dan:ab104c54c6d06fa5bc17e38059c1b814ee9c3b43" -F "image=/path_to_photo/image.jpg" http://localhos...
Toreutic asked 8/11, 2014 at 5:34

4

Solved

Is it possible to use TastyPie to update a ForeignKey field to None? Related question: tastypie won't remove foreignkey reference during PUT What I have: class SomeObject(models.Model): som...
Saccharometer asked 14/3, 2012 at 4:9

1

Solved

Using Tastypie and AngularJS $resource I would like to perform a set of update, create and delete operations. Currently, I broadcast an event: $rootScope.$broadcast('save'); That event is captu...
Distribution asked 29/9, 2014 at 14:21

1

Solved

Suppose you want to give out {field1, field2, field3} on detail request. {field1, field2} on list request. {field1} on some other simpler list request. I have seen examples using get_serializer...
Kilogrammeter asked 18/9, 2014 at 5:25

1

Solved

I have a Django web application which requires authentication across the whole site. I've accomplished that with custom middleware which basically test if request.user.is_anonymous and, if they are...
Adiathermancy asked 29/8, 2014 at 17:12

1

Solved

I've been struggling with this for a bit, pouring over a bunch of other SO answers but can't seem to figure out how to authenticate a user to my Django site using the ApiKeyAuthentication. In thi...
Steffi asked 28/8, 2014 at 15:27

2

Solved

I have two models that are linked by another model through a many to many relationship. Here's the models themselves class Posts(models.Model): id = models.CharField(max_length=108, primary_key=...
Dominicadominical asked 19/7, 2012 at 9:27

4

Solved

I have built a simple Django photo app. Users can upload photos, follow other users and like photos. To handle relationships amongst the users (following & unfollowing) I use a package called d...
Legman asked 3/12, 2013 at 21:18

1

Solved

I'm randomly (and consistently) getting a broken pipe in uwsgi... shown below. Any idea what could be causing this or how I can debug? I'm on django (tastypie), uwsgi, nginx, and am running an m3....
Iglesias asked 18/6, 2014 at 20:17

4

I'm trying to write custom Authentication in tastypie. Basically, I want to do the authentication using the post parameters and I don't want to use the django auth at all, so my code looks somethin...
Julee asked 20/9, 2012 at 23:22

3

Solved

I get a maximum recursion depth exceeded if a run the code below: from tastypie import fields, utils from tastypie.resources import ModelResource from core.models import Project, Client class C...
Mcreynolds asked 19/7, 2012 at 22:47

4

Solved

I would like for a particular django-tastypie model resource to have only a subset of fields when listing objects, and all fields when showing a detail. Is this possible?
Turn asked 21/5, 2012 at 22:14

2

Solved

I'm trying to override is_authenticated in my custom authentication. I have something simple (to start with) like this: class MyAuthentication(BasicAuthentication): def __init__(self, *args, **kw...
Burson asked 2/8, 2012 at 3:6

3

Solved

We're building a web application using Django/TastyPie as the back-end REST service provider, and building an AngularJS based front end, using lots of $resource based services to CRUD objects on th...
Robenarobenia asked 8/10, 2013 at 21:1

© 2022 - 2024 — McMap. All rights reserved.