Django,Jquery,Ajax; refreshing div for voting system not working?
问题 I have a working django voting system using up and down keypresses on entries in a database. I need to have the {{ entry.score }} refresh on the page without a reload, as there will be other entries on the page. The {{ entry.text }} can refresh but needs to stay as the same entry until a different keypress selects a different entry. I'm trying to do it with ajax, but get a 500 Internal Server Error and no refresh, GET http://127.0.0.1:8000/voteup/?voteid=30 500 (INTERNAL SERVER ERROR) jquery