On the problem of obtaining data by ajax

first of all, when the user logs in, I want to display the user"s information and get the data in the profile_ajax view. This corresponds to html
clipboard.png

clipboard.png

html

clipboard.png

clipboard.png
formuid

clipboard.png
. Here is the problem. I click here to view the details. Will the ajax of html not enter the post way or get, I can"t get the uid,?
what is the reason? because I entered the html interface, ajax is already getting data, but click to see more details. The data of post will soon become get without ajax? I don"t understand.


does not see that you have a post request at the front desk.


there should be return in the judgment of if request.method = 'POST'.

Menu