1. 程式人生 > >You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH

You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH

錯誤資訊如下:

RuntimeError at /picload
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 127.0.0.1:8000/picload/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.

表單欄位action以'/'結尾,(action="/picsave/),嘗試修改settings檔案,設定了APPEND_SLASH = False屬性,

bug仍存在。最後將 應用urls中對應的路徑末去掉'/',(r'^picsave/$',去掉表示式中的'/'),bug修復。
PS:仔細瞭解APP中urls路徑配置詳細規則