tastypie

    0熱度

    2回答

    我們其中有一個領域last_updated這是我們與MySQL-工作臺設置具有以下屬性的資源表: 數據類型:TIMESTAMP NN( NOTNULL)是checked 默認:CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP 當我修改行通過工作臺和應用它,在last_updated領域適當更新。 當我使用REST API,我們已經設置,併發出認沽: upd

    0熱度

    1回答

    我需要創建一個連接到多個其他的API,以應用濾鏡 我所做的就是呼籲主要API的調度方法,調度方法的API(稱爲虛擬) 。我改變了請求QUERY_STRING爲每個被被稱爲 class DummyResource(MultipartResource, ModelResource): class Meta: queryset = Dummy.objects.all()

    0熱度

    1回答

    我想外鍵添加到我的tastypie資源,不過在Django拋出這個錯誤: "error_message": "'BB' object is not iterable", 我創建了一個最小的工作例如: models.py class AA(models.Model): n = models.IntegerField() class BB(models.Model): a

    1熱度

    1回答

    我有兩個型號: class Question(models.Model): question_text = models.TextField() class Response(models.Model): response_text = models.TextField() question = models.ForeignKey(Question, relate

    0熱度

    2回答

    所以我想有我位置過濾網址爲api/v1/labels/?brand_location=Australia過濾與澳大利亞唯一的品牌品牌迴歸,但保持收到錯誤消息: {"error": "Invalid resource lookup data provided (mismatched type)."} 但是,當使用api/v1/labels/?brand_location/=Australia它可

    0熱度

    1回答

    Tastypie小數和日期過濾器下面LTE和GTE過濾查詢返回0對象: curl http://localhost/river/river/?runoff__lte=100.0&runoff__gte=150.0 curl http://localhost/river/river/?runoff__lte=100&runoff__gte=150 http://localhost/river/r

    -2熱度

    1回答

    有沒有人在這裏可以教我如何通過以下鏈接發佈數據: http://127.0.0.1:8000/api/v1/user/?format=json&action=POST&username=someone&password=something 謝謝!

    0熱度

    1回答

    給出一個RESTful API使用Django 1.10和Django的Tastypie 0.13.3建立了提供了以下響應GET請求: { "meta": { "limit": 20, "next": "/api/v1/serverwinpatchresults/?limit=20&offset=20", "offset": 0, "pre

    0熱度

    1回答

    在我的API中,我使用的是def get_list(self, request, **kwargs):方法。 現在我需要追加一個動態字段來提供一些額外的數據。 所以我想用def dehydrate(self, bundle):的方法。 但是在這種情況下,def dehydrate(self, bundle):方法沒有執行。再次,如果我刪除或保留評論def get_list(self, reques

    6熱度

    2回答

    我們正在嘗試爲我們的IOS應用程序構建一個簡單的跟隨功能。我們有兩個API,即我們的Brand API,其中包含一系列對象,每個對象中包含品牌的唯一品牌ID。而我們的Firebase API是我們存儲用戶的地方。在Firebase API中,它具有一個名爲followingBrands的對象,以及名爲由unique brand ids from our Brand API構成的對象數組,其值爲tr