您好,登錄后才能下訂單哦!
問(wèn)題一:
Get和Post提交方式, 各種方法試盡了,始終不成功,結(jié)果是URL問(wèn)題,http://xxxx/xxxxx實(shí)在沒(méi)有辦法只好直接上html:
<html> <head>test</head> <body> <form action="http://xxxx/xxxxx" method="post"> <input type=text name='username' /> <input type="submit" value='submit'/> </form> </body> </html>
終于露出了能看到的原因:
You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to xxxx/xxxx/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.
就是最后"/"的原因。
總結(jié):在模擬器中不找到原因時(shí)要嘗試換一種簡(jiǎn)單明了的方式來(lái)模擬重現(xiàn)問(wèn)題場(chǎng)景。
問(wèn)題二:
Eclipse 提示:replace "..." with ellipsis character (…, &&;#8230;) ?
提示的意思是:用省略號(hào)的字符形式(…, &&;#8230;)?替換省略號(hào)"..."(這個(gè)省略號(hào)是由英文狀態(tài)下輸入的三個(gè)圓點(diǎn))
解決方法:
跳到中文輸入法下,按shift+^打出省略號(hào)
直接將省略號(hào)替換為【…】
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。