Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
1 answer
63 views

I am attempting to migrate model changes I have made to my codebase to a PostgreSQL server (PostgreSQL 18.1 on x86_64-linux, compiled by gcc-11.4.0, 64-bit), but every time I do this error is thrown. ...
Best practices
0 votes
3 replies
51 views

I'm new to Django. I've been making a project with 3 types of accounts: Schools, professors and users. But I feel like some things would be too "repetitive" like some model fields and views ...
-7 votes
0 answers
18 views

(venv) PS C:\poultry_link\poultrylink> npx tailwind css init npm error could not determine executable to run npm error A complete log of this run can be found in: C:\Users\naallah\AppData\Local\npm-...
-4 votes
1 answer
63 views

I have a survey app that works fine as a standalone app with no complaints (using sqlite). But when I incorporate the survey app into another that is using postgres as a database, it fails to run the ...
1 vote
1 answer
56 views

I have a survey app that works fine as a standalone app with no complaints (using sqlite). But when I incorporate the survey app into another that is using postgres as a database, it fails to run the ...
0 votes
0 answers
41 views

I have "successfully" set up django-storages to work with our self hosted Minio instance. This is the settings for the setup: STORAGES = { "default": { "BACKEND&...
1 vote
2 answers
60 views

Let's say this is my model: from django.core.exceptions import ValidationError class MyModel(models.Model): value = models.CharField(max_length=255) def clean(self): if self.value == &...
4 votes
0 answers
91 views

Problem I am working on a Django project using a PostgreSQL container in Docker. I added a ManyToManyField to one of my models. I keep migrations in .gitignore because my local and production ...
0 votes
1 answer
27 views

I'm attempting to display a form for a tennis event (location, time/date) and each of its participants (name, status). I was recommended to use an inlineformset, which I assume would allow editing of ...
1 vote
0 answers
81 views

I added following and followers by using intermediate model, it's ok but does not correctly specify objects in the intermediate model. I expect the user who follows must to be in the user_from field ...
0 votes
0 answers
76 views

I'm implementing JWT authentication using Django REST Framework and djangorestframework-simplejwt in my project. I have an endpoint for updating a category. What I tried Verified that the JWT token ...
-1 votes
1 answer
62 views

While trying to create a custom QuerySet and a custom Manager for a django Model I stumbled upon the documentation sections 1 and 2 that use the manager's _db property and i would like to understand ...
Charalamm's user avatar
  • 2,037
0 votes
1 answer
54 views

I’m running a Django (ASGI) app Heroku using Gunicorn with the Uvicorn worker to support WebSockets. Heroku has a hard 30-second request timeout. When a request exceeds 30 seconds, Heroku closes the ...
1 vote
2 answers
57 views

I’m building a Django-based classifieds website. Previously, my search form populated districts and categories using database queries like: districts = ( AdPost.objects .filter(admin_verified=...
0 votes
0 answers
55 views

I'd like to change background color for these headers for different color (not white): Like this: My models: from django.core.validators import MinValueValidator, MaxValueValidator from django.db ...

15 30 50 per page
1
2 3 4 5
...
20766

AltStyle によって変換されたページ (->オリジナル) /