作者qas612820704 (Lego)
看板Python
標題[問題] Django response in other views!?
時間Sat Apr 25 13:01:54 2015
我不知道該怎麼下個標題
這是一些主要程式碼的部份
http://runnable.com/VTsih34k7RxoTvfE/resjson-for-python-and-django
問題是這樣
我在/tests/ResJson/ 會回傳一個Json response
然後我想在 /polls/getJsonRes/ 接到/tests/ResJson所回傳的那個response
請問我在
def getJsonRes(request): # in polls/vies.py
這個function該怎麼做?
跪求大大<(_ _)>
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 125.224.248.106
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1429938120.A.23D.html
※ 編輯: qas612820704 (125.224.248.106), 04/25/2015 13:14:25
→ uranusjr: 先退一步,你為什麼要這麼做? 04/25 23:26
→ qas612820704: 最後我用session的方式在views中傳變數了 感謝! 04/27 01:19