[問題] Django response in other views!?

看板Python作者 (Lego)時間10年前 (2015/04/25 13:02), 10年前編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/1
我不知道該怎麼下個標題 這是一些主要程式碼的部份 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

04/25 23:26, , 1F
先退一步,你為什麼要這麼做?
04/25 23:26, 1F

04/27 01:19, , 2F
最後我用session的方式在views中傳變數了 感謝!
04/27 01:19, 2F
文章代碼(AID): #1LEn_88z (Python)
文章代碼(AID): #1LEn_88z (Python)