I want to update a post in Django, but I don't want to use Django forms for this is there any way to do that. Eg I want to update the title and description of my post.
You can use Ajax/Js to send post requests to the server.
def your_view_name(request, id):
updata_data = modelname.objects.filter(id = id)
and then render out related fields in your template file
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.