311,636 questions
0
votes
0
answers
35
views
trouble connecting my database to Django server on deployment machine
I'm deploying to AWS Linux 2023 and my postgresql database in on aws RDS. I've installed psql and checked if db is accessible in my instance. I've also checked that the environmental variables are ...
3
votes
2
answers
74
views
Celery memory leak in Django — worker memory keeps increasing and not released after tasks complete
I’m using Django + Celery for data crawling tasks, but the memory usage of the Celery worker keeps increasing over time and never goes down after each task is completed.
I’m using:
celery==5.5.3
...
0
votes
1
answer
32
views
Error during Django Deployment: Cannot import 'setuptools.build_meta'
I have encountered this error while deploying my Django project on Render. The error is as follows:
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Cannot import 'setuptools.build_meta'
I have ...
-1
votes
1
answer
29
views
Mystery lag in completing Django POST request after form.save() completes [closed]
One of the forms in my Django application takes a long time to submit, save, and redirect. I'm using a variant of cProfile to measure the time spent on form.clean() and form.save(). It takes <0.1 ...
0
votes
1
answer
22
views
Certain django-select2 fields won't render when multiple forms are used on single template
I have an issue rendering some select2 fields:
When multiple forms with same select2 widget are used within a single template some select2 fields are not rendered as expected (rendered just as normal ...
1
vote
1
answer
56
views
Custom Permissions in django-ninja which needs to use existing db objects
I am using django-ninja and django-ninja-extra for an api.
Currently I have some Schema like so
from ninja import schema
class SchemaA(Schema)
fruit_id: int
other_data: str
and a controller ...
-3
votes
0
answers
59
views
How can I share my PostgreSQL changes with teammates after git pull in a Django project?
I'm working on the backend of a web application using Django.Each developer has a local setup of the project, and we all pull updates from GitHub using git pull.
I have a question about database ...
1
vote
1
answer
94
views
Django: User Experience for checking if a person already exists in the database (first and last name, and birthday)
[I'm sure my use case has been addressed somewhere, but I'm not finding it.]
In this use case, the user is registering a new person with the following fields: first name, last name, and birthday. If ...
1
vote
1
answer
118
views
How to prevent database overload with BlacklistedToken and OutstandingToken models in Django using Simple JWT? [closed]
'm working on a Django project using Simple JWT
, and I've noticed that every time a user logs in, the generated tokens are stored in the BlacklistedToken and OutstandingToken tables in the database. ...
-2
votes
0
answers
78
views
Where should I put Django pre-flight checks that access the database? [closed]
I have a Django app that requires certain items to be in the database before it will run. I'd like to add checks at start time that will fail if these items are not found in the database.
Is there a ...
0
votes
1
answer
69
views
How to reset password in a Django UserChangeForm
I have a basic CustomUser model in my project. When I want to update it I fill my form with instance where I try to make user's passsword null, but anyway in the form i recieve:
"No password set.
...
-4
votes
0
answers
30
views
More than basic form validation with Django [duplicate]
I'm learning Django with a small app allowing people to book houses for lodging. I have two models, describing a house and a booking (I'm currently working without a "Customer" model):
# ...
1
vote
1
answer
97
views
Changing the owner of .venv created by uv inside Docker
I have a Django app build by uv running inside Docker. I mount the local filesystem as a volume in the container using Docker Compose so that edits to the source code locally trigger reloading of the ...
-1
votes
1
answer
68
views
Django email not sending — no error, but messages don’t arrive (using Gmail SMTP) [closed]
I’m trying to send emails from my Django project using Gmail’s SMTP server.
The server runs without any errors, and my code executes successfully, but the emails never reach the recipient — not even ...
0
votes
1
answer
74
views
django getting 530, 5.7.0 Authentication Required despite using google's App Paswords [closed]
Have 2fa on Google, created the password, putting in the correct email and app password in the settings.py, yet still get Authentication Error. Tried both 587(TLS=True) and 465(SSL=True) but didn't ...