311,189 questions
Score of 0
1 answer
55 views
"session not created" error with Selenium ChromeDriver started by Django
Whenever I try to start up Selenium ChromeDriver via Django on an Ubuntu server, I get a "session not created" error. The issue appears to be based on starting it with the Django process, as ...
Score of 1
1 answer
61 views
Django logging with dictionaries as context
This view in realestate\auth2\views.py validates form data and checks if the email or phone has already been taken. It also logs messages depending on situation and I pass dictionaries as logging ...
Score of -2
0 answers
54 views
AttributeError: 'PdbMiddleware' object has no attribute 'async_mode' [closed]
After having upgraded some Django libs, I get:
AttributeError: 'PdbMiddleware' object has no attribute 'async_mode'
I have googled, but found no result with proper suggest.
I do not have this ...
Score of -1
0 answers
125 views
Can Django autocapitalize first letters like how Laravel does?
Can Django autocapitalize first letters inside placeholders like how Laravel does?
Field name/attribute:
msgid "first_name"
msgstr "ime"
Error message with normal placeholder:
...
Score of -1
1 answer
74 views
Django CSRF port wildcard
I am running a Django project in a container that defaults to expose the app on port 80, but due to specifics of my configuration that port is in use and I have it remapped to 8080. This breaks the ...
Score of -1
1 answer
108 views
Add URL parameter to forms.ModelForm object and pass to html template
Models.py:
class Training_details(models.Model):
training = models.ForeignKey(Training, on_delete=models.CASCADE)
description = models.TextField()
class Meta:
db_table = '...
Tooling
2
votes
2
replies
69
views
Is anaconda best for Django and web dev packages?
I am learning machine learning and deep learning using miniconda environment on native python. Now I am looking to learn Django and other backend packages like fastapi and tornado. Is conda enough for ...
Score of 3
0 answers
109 views
Why face_recognition.face_encodings() cause request timeout in concurrent django requests?
I am integrating a real-time computer vision pipeline into a Django view backend to process webcam frames. The frame analysis logic runs when a request hits the endpoint. My code is within a view like ...
Tooling
0
votes
0
replies
46
views
Django - concatenating multiple HttpResponses for partial templates
I have a web page where I populate elements (in a grid) with HTML. This works nicely using Django's render() and querying using HTMX, as required.
I now have a case where I'd like to populate the ...
Advice
1
vote
4
replies
113
views
Architecture Advice Needed – Multi-Tenant Business Platform
I'm looking for architectural feedback from experienced software engineers and architects.
Current Context
We have a business management platform used by multiple companies.
Tech stack:
Frontend: ...
Score of 1
1 answer
110 views
How can I make Django signals request-aware for audit logging
I am building an audit trail system in Django where I need access to the current HTTP request inside model signals (pre_save, post_save, pre_delete, post_delete).
The goal is to make signals “request-...
Score of 2
1 answer
166 views
How to display names instead of IDs, using Django with React?
I'm using Django with React.
I'm creating a CRUD application for products. My Product table is related to the Category, Brand, Model, Quality, and Supplier tables.
I can save the data, but when I try ...
Score of 1
2 answers
169 views
null value in column "width" violates not null constraint while uploading image to django
I'm on Django==5.2.12 and django-imagekit==6.1.0
This is my PostImage model:
class PostImage(models.Model):
post = models.ForeignKey(Post, on_delete=models.CASCADE, null=True, related_name="...
Score of 2
1 answer
104 views
OperationalError [WinError 10061] No connection could be made because the target machine actively refused it
I'm trying to send a message to a newly registered user in Django using Redis.
I had a project with the analogical functionality and it worked.
In my current project, I get this error "...
Score of -1
1 answer
131 views
Tags in Django With MariaDB [closed]
I'm trying to make a website and part of that is having tags much like this site has. I'm trying this:
def index(request):
storylist = Story.objects.order_by("id")
tagslist = []
...