1๐
โ
Hm If I understand the question, you need to do the following:
-
Create your view function, and create a URL pattern in URL.conf that attaches to this view function. Something like /points/save/
-
This function will likely require the points of the user and the user ID (so you can make changes to the specific user in the database)
-
You need to make an ajax request that sends the point data and the user ID To the URL that points to your view function. Sent through GET/POST
-
Your view function will lookup the user from the user id sent from jquery ajax call, then edit the user points with the points sent from the ajax call
Here are a few guides to help
๐คHacking Life
Source:stackexchange.com