我有這個基於金字塔框架的webservice,它接受multipart/form-data請求。 當我從cURL發送請求時,一切正常;然而 從Android應用程序時,出現以下錯誤 TypeError: must be str, not bytes ,當我嘗試訪問任何領域:例如request.POST.get('smartphoneId', None) 區別在於Android庫爲這些字段添加了一些
我試圖更改Pyramid hello world example,以便對金字塔服務器的任何請求都服務於同一頁面。即所有路線指向相同的視圖。這是第四走到這一步: from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Res