Skip to main content

All Questions

Tagged with
0 votes
0 answers
33 views

I wish to first submit a post request and move to different page in flask

Requirement: There is form in my html page where we can upload files and post them. After posting the files I wish to save it in the backend and then proceed to the next page of my application in a ...
R.S4697's user avatar
-1 votes
1 answer
33 views

Django IntegrityError: How to handle ForeignKeyViolation in a delete view?

I’m facing an issue when trying to delete records in Django. I have a delete function for companies, but sometimes I encounter an IntegrityError if the company has related records in another table. I ...
googosya's user avatar
0 votes
0 answers
56 views

405 Method Not Allowed Error on POST Request to Flask Endpoint

I'm encountering a 405 Method Not Allowed error when making a POST request to the /generate endpoint in my Flask application. I've ensured that the endpoint is configured to handle POST requests, but ...
Royston Emmanuel's user avatar
0 votes
0 answers
14 views

Calling a python function in javascript? link function in python to be used in my script.js without using flask, but perhaps AJAX? [duplicate]

I have a file recommender.py, which contains a python function get_recommendations(title) I want to use this in my script.js file // Function to handle rating submission function submitRating(...
shravya karna's user avatar
0 votes
0 answers
20 views

How can I integrate AJAX infinite Scroll with Django View

I have a Django view that originally displays a list of applicants, and using the filter by session, it is expected to display list of applicants by the selected academic session. And using pagination,...
Success Gande's user avatar
1 vote
0 answers
32 views

Flask route with send_file function called via ajax-request

My problem is almost exactly like in this unsolved quastion. Downloading starts properly, if route function was called directly: HTML <button type="button" onclick="window.location....
Hi-tecX's user avatar
  • 15
0 votes
0 answers
36 views

Javascript does not redirect and time is stay same in Django Application. How to solve it?

Hi everyone I try to build web application with using django and js. It is kind of chat application there are rooms and each room have time after time is up. I want to delete room. While I making test,...
Mert Altintas's user avatar
0 votes
1 answer
37 views

How to resolve CORS issue when making AJAX requests to a Flask server from a frontend?

I'm developing a web application using Flask for the backend and JavaScript for the frontend. However, I am facing issues with CORS policy when trying to make AJAX requests from my frontend to the ...
Summer Bittencourt's user avatar
0 votes
2 answers
37 views

AJAX request to Django view and python print to terminal doesn't do anything

I am working on a Django website for the nonprofit. I am on the profile images part. I am trying to upload images using the image as a button to submit. I have the file chooser that opens. Then, it ...
Hoko L's user avatar
  • 67
0 votes
1 answer
113 views

Pass JS variable to another JS and to django view

I have several cards with items. I added a counter to each card and a button 'Add to cart'. I want to pass the count of item into django view using ajax. But I dont know how to pass variable from ...
Андрей's user avatar
1 vote
1 answer
105 views

Polling a Celery Task with Ajax

I have a Celery task that populates a PostgreSQL database over the course of a few minutes. I want to retrieve the current data from the database in a Django view and send it to a template where it ...
Laith Tahboub's user avatar
0 votes
0 answers
46 views

Django - How to use AJAX within a form

I'm trying to use AJAX for the first time as we have a Django project but a required feature is for one form to behave more like a react app or SPA so I'm trying to use AJAX to add that functionality. ...
Jack Duffy's user avatar
0 votes
0 answers
38 views

ajax real-time page refresh

Well, in general, I'm doing a small project on django and I decided to implement a convenient search for any parameter from my form. all js was written to me by chatgpt and I don't understand it at ...
Никита's user avatar
-1 votes
1 answer
24 views

Is there a way to send an image from an ajax to flask?

I've tried a few things but the only answers I can find are from 2013. I've seen some people say it only worked on 1.6 Jquery but im not sure Tried <div class="form-group d-flex justify-...
corieleclair's user avatar
0 votes
0 answers
90 views

How can I insert a QR code reader in my django application to verify if a code exists on the database?

I have a django app of musical show tickets that a QR code is generated and saved on the database after every sale of a ticket. Now I'm trying to create a page that will read these QR codes to verify ...
Matheus Marques's user avatar

15 30 50 per page
1
2 3 4 5
108