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...
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...
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...
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...
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...
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 =...
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...
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...
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...
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=...
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
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...
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...
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?
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...
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...
© 2022 - 2024 — McMap. All rights reserved.