All Questions
5,518
questions
0
votes
0
answers
13
views
Cannot display image with JavaScript from Django Base
I am attempting to get a customer logo to load when a user signs into my app. To do that I am using the views function below to generate the logo url:
Views:
def view_company_logo(request):
print(&...
-2
votes
1
answer
42
views
Ajax is not working without refreshing the page [closed]
Ajax is not working without refreshig the page to make it work.I am coding an ecommerce website in django and need to show quantity of products in the cart but it dont show quantity without refresh ...
0
votes
0
answers
35
views
Initializing a Bokeh AjaxDataSource: source callback not receiving parameters on initialization
I have a Bokeh vbar plot in a figure which gets its data from an AjaxDataSource via a JavaScript callback. It works OK after resizing, but initializing the plot fails with a MultiValueDictKeyError, ...
0
votes
1
answer
20
views
NextJS can't connect to uwsgi directly
I'm trying to build an application with django on backend-side and nextjs on frontend-side. Backend is ran by uwsgi.
uwsgi --http 0.0.0.0:3000 -w project.wsgi --master --harakiri=60 --pidfile=uwsgi....
-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 ...
0
votes
1
answer
34
views
ajax not passing data to view in Django
I am trying to send ajax request but request QueryDict is empty
index.html
var coin = Number(localStorage.getItem("coin"))
if (coin!=0) {
debugger
...
0
votes
2
answers
84
views
Ajax live search in header on wagtail/Django
I recently just started learning Python, Wagtail and Django.
There was a need to create a live search in the header of the site, but I just can’t get it to work correctly; as a result of the search, ...
1
vote
1
answer
34
views
Django delete record with ajax only disappears after manual refresh
I want to delete records from my table using Ajax and Sweetalert2 dialog. However, when I click the delete button and confirm the delete, the item is deleted from the modal but is still visible in the ...
0
votes
0
answers
33
views
Django: select2 dropdown links to worng model
I would like to have two searchable dropdowns which are linked to two different modals (Dog & Service). The first dropdown for the products (services modal) works fine (expect, that i dont have a ...
0
votes
0
answers
50
views
Adding Custom Description Input Field Next to File Names in FilePond
I'm using FilePond for file uploads in my Django project. I want to add a custom description input field next to each file name in the list of files to be uploaded. When I use the following HTML, the ...
2
votes
1
answer
141
views
Azure Web App blocking AJAX requests to django application
I have a django (4.2.13 + python 3.10) application that at certain point makes AJAX requests to display progress to user while processing data from uploaded file.
When I try this locally on my ...
0
votes
1
answer
19
views
I cant implement AJAX in my django forum app to post a question
I have a forum app in which users can post their questions. I want to prevent page reloading each time a user post a comment for a question. I've tried implementing ajax but it didn't work.
I've done ...
0
votes
0
answers
58
views
best method to do Django facial recognition by capturing the customer's camera
Good afternoon, what would be the best way to capture frames from the user's camera to use a function I have in Django views for facial recognition.
What I'm trying now is to open a camera for the ...
0
votes
1
answer
32
views
Django render a view depending geolocation from the browser
I'm trying to load my home page according to the geolocation given by the browser, if the coordinates are ok, I load a list of airports around these coordinates, otherwise I load all airports.
However,...
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,...