7 questions from the last 7 days
-4
votes
1
answer
51
views
django model with foreign key onto settings.AUTH_USER_MODEL fails when app is incorporated into other app using postgres [duplicate]
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
1
answer
29
views
django model with foreign key onto settings.AUTH_USER_MODEL fails when app is incorporated into other app using postgres
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
31
views
Using django-storages S3 implementation for Minio with s3v4 signature
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
54
views
Does a ModelSerializer catch "django.core.exceptions.ValidationError"s and turn them to an HTTP response with a 400 status code?
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
74
views
Django ManyToMany table missing even though migrations are applied (Docker + Postgres)
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
25
views
Does Django inlineformset allow for editing & submitting related model data?
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
Django ManyToMany self relationship with through model — user_from and user_to reversed behavior
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 ...