tastypie Questions

4

I use intermediate model for "ManyToManyField using the through" Normally,If I don't use intermediate field, the m2m relation will be unique and can't have the duplicated data. After I us...
Fluxmeter asked 7/2, 2013 at 14:36

2

I am building a real world application where users will access the app primarily from Android, iOS devices as well as Desktops. From my elementary research, I have realized that token based authen...
Meandrous asked 24/7, 2015 at 0:57

2

I'm making RESTful API using Tastypie, and when I try to POST/PUT/DELETE a request it says: "detail": "CSRF Failed: CSRF token missing or incorrect.". It works fine with GET. I've read various...
Centimeter asked 3/2, 2014 at 12:22

2

Solved

I have a link that I would like to add to my javascript (Marionette/Backbone) single page application that will download an Excel file to the user's local drive via the browser's file save. A typic...
Libido asked 6/5, 2014 at 4:14

5

Solved

What I'm trying to do is whenever the user requests an API key--regardless of whether the user already generated one or not--the system will generate an entirely new key. I know that whenever call...
Rodenhouse asked 7/6, 2012 at 22:55

8

Solved

django-debug-toolbar needs its output to be html, but django-tastypie's default output format is json. I tried sending http://localhost/api/v1/resource/?format=html but it says Sorry, not impleme...
Benzel asked 31/1, 2013 at 3:57

2

I am using default logger in Django having following configuration: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'filters': { 'require_debug_false': { '()': 'django.utils.log.Requ...
Gilgai asked 8/3, 2016 at 13:8

5

Solved

I need to generate an API key and secret that would be stored in a Redis server. What would be the best way to generate a key and secret? I am developing a Django-tastypie framework-based app.
Negligence asked 20/1, 2016 at 10:41

3

how do you include related fields in the api? class Foo(models.Model): name = models.CharField(...) class Bar(models.Model): foo = models.ForeignKey(Foo) description = models.CharField() Eac...
Uzzia asked 10/1, 2013 at 16:38

1

This problem is related to this other problem, but instead, I wish to convert a single model instance to JSON, using an existing Tastypie Resource.
Glossotomy asked 11/5, 2019 at 10:8

6

I'm setting up an API. Everything is working. I'm creating a token via OAuth2 python lib. I'm using TastyPie for my API. The problem I'm facing.. is that there is no "create" token method in the A...
Ruberta asked 25/7, 2013 at 20:23

3

Solved

In my Tastypie resource, I'm annotating my queryset, and yet I don't see that annotation flow through to the JSON Tastypie generates and passes back. The code is straightforward: class Competition...
Precious asked 17/9, 2012 at 13:46

3

Solved

I have a basic Django model like: class Business(models.Model): name = models.CharField(max_length=200, unique=True) email = models.EmailField() phone = models.CharField(max_length=40, blank=Tr...
Lanky asked 5/4, 2012 at 2:4

2

Solved

I am trying to bring a Django project from version 1.8 to 1.11. Pretty much everything seems to work fine except unit tests. We have a base test class inheriting from Django TestCase with a Tastypi...
Physique asked 4/8, 2017 at 21:24

5

Solved

I had a simple question on filtering in tastypie. I want to filter with multiple values. For example: /api/v1/message/?accountId=1,5,12 This doesnt work. Any idea how i can do this? Do i need t...
Slurry asked 11/7, 2012 at 15:35

3

Solved

I have a simple query on django's built in comments model and getting the error below with heroku's postgreSQL database: DatabaseError: operator does not exist: integer = text LINE 1: ... INNER J...
Motorbus asked 16/4, 2013 at 18:48

3

I have a mobile app that allows users to sign up via Facebook. Once I receive the access token from FB, I send it to the Django backend. But then what? Is there a method inside of django-allaut...
Monies asked 5/5, 2013 at 5:37

5

Solved

I am getting the following error while using ApiKeyAuthentication for my Tastypie resources when I try to do an HTTP request using AJAX and Tastypie: XMLHttpRequest cannot load http://domain.com/a...
Argillite asked 11/5, 2012 at 9:34

3

Solved

In tastypie my url: /api/v1/course/1/?format=json gives the following json: { created_on: "2012-02-27T08:00:54", description: "this is course 1", id: "1", resource_uri: "/api/v1/course/1/", subjec...
Bostwick asked 29/2, 2012 at 8:34

2

Solved

I'm having a bit of difficulty figuring out what my next steps should be. I am using tastypie to create an API for my web application. From another application, specifically ifbyphone.com, I am r...
Poyssick asked 28/12, 2012 at 18:38

2

Solved

We are trying to build a simple follow feature for our IOS app. We have two API's our Brand API with an array of objects containing unique brand ids for our brands within each object. And our Fireb...
Wolffish asked 20/8, 2016 at 19:49

2

Solved

I started working on AngularJS and DataTables and wonder whether it is possible to customize the response DataTables is expecting. The current expectation of the DataTables plugin is something like...
Vierra asked 8/8, 2014 at 20:12

4

Solved

I am testing tastypie 1.9 with Django 1.4 to create a basic REST API for my website. I am following the initial steps in documentation, where I got stuck. I am running Django globally, and not usi...
Spratt asked 20/6, 2013 at 5:8

5

Solved

Is there a negation filter available by default. The idea is that you can do the following in the django ORM: model.objects.filter(field!=value) How can I do that in tastypie if that is even pos...
Oidea asked 12/3, 2012 at 21:33

2

In resources.py I have: class CategoryResource(ModelResource): items = fields.ToManyField('ItemResource', 'items', full=True, null=False, readonly=True, related_name='items') class Meta: queryse...
Wassyngton asked 17/1, 2016 at 17:34

© 2022 - 2024 — McMap. All rights reserved.