65 questions
0 votes
1 answer
34 views
Getting query length with Ajax / Django
According to the selection in the form, I want to get the number of records that match the id of the selected data as an integer. Here is my view : def loadRelationalForm(request): main_task_id = ...
0 votes
1 answer
66 views
Sending data to database with JavaScript in Django
I need to write a compatible algorithm for this code, but I can't. How can I send data to backend? I am using bootstable.js for table HTML table: <table class="table table-bordered" id=&...
0 votes
2 answers
179 views
How to handle too many elements in django-ajax-select admin panel?
I am using the django-ajax-select library to display a many to many relationship in the admin panel. The problem is that I have too many objects linked and it is making super long page. Do you know if ...
0 votes
1 answer
537 views
Ajax post request is printing json response on empty html page instead of html signup page
I am making a website in django with ajax.I have created a base html file django template and two other html templates named signup.html and home.html. I have written code to make ajax request with ...
0 votes
2 answers
241 views
Can not get comment id with AJAX in django
I'm fighting with this problem during several days and can not find the solution for my case. I'm trying to make system of likes without refreshing the page. In synchronous mode system of likes and ...
0 votes
1 answer
496 views
How to submit a form with django ajax without parsing the input
I have a modal form that I use when users need to create something without leaving the page they are on. And to avoid refreshing the page after the modal form submission, I am using ajax to submit the ...
0 votes
1 answer
299 views
What is ajax gets invalid form, How can i render it?
I am working with Django and Ajax. With the help of jQuery, i successfully sent form data to server and able to validate it. Problem arrive when form is invalid, i want that, if the form is invalid, ...
1 vote
0 answers
310 views
POST 500 (Internal Server Error) using AJAX in Django
I hope someone can help me to figure out what I am doing wrong. I am trying to filter the blog articles by tags, so that certain articles are render in all-articles.html when the user clicks on the ...
0 votes
1 answer
259 views
asynchronus form submission django
I'm using ajax to submit a form, and it's working. But it's not working asynchronously. When I'm trying to upload files it uploaded successfully and then the page loads again. I want it to make ...
1 vote
0 answers
170 views
django-ajax-selects - How to keep the selected option
I was able to successfully deploy django-ajax-selects. When I search for a value on my form I'm able to find it and "lock" that value on the below "display deck" (that's how it's ...
0 votes
1 answer
210 views
django ajax like button with css classes
hello I have a post model which has a like(m2m) and user(forgeinkey) model field and Im trying to check if the request.user has liked the post and if they have, I should show them a red heart button ...
1 vote
1 answer
50 views
Django3 Like Ajax Button Book By Antonio Mele
It works but when press like button it coun 2099 instead of 1, after refresh it turn 1..when unlike same problem happend...It counts correctly after refresh....before refresh it count 2099 or 3011 ...
1 vote
1 answer
702 views
Djago dependent dropdown list using AJAX jQuery not working in Template
im doing a django dependent form and it works for my create view but not in update view. I tink the problem is the jQuery cdn library, i think its a conflict with the bootstrap cdn. The AJax call does ...
0 votes
1 answer
151 views
how to get data from different table using ajax in form of checkbox in django
Here i want to have my contactperson data in form of checkbox but using ajax call,I am able to bring in form of dropdown but after doing changes for converting it in form of checkbox its not working ...
0 votes
1 answer
439 views
How to solve page not found error in Django?
I have a list of multiple projects on my page, and each project have a contact use button, if a user click on contact us page then it will open a popup form, and I am doing this using Ajax. But ...