The doc says below in DateField.auto_now_add. *I use Django 4.2.1: Automatically set the field to now when the object is first created. ... If you ...
The doc says below in DateField.auto_now_add. *I use Django 4.2.1: Automatically set the field to now when the object is first created. ... If you ...
This is my first django project so I'm still learning. I Django project of Formula One Races and Racers. The Race model looks like this, and the ra ...
I have 2 models which are StudentCourses and ExamGrade, below are the models and attribute important which i would like to update on StudentCourses wh ...
I'm building an API using DRF, and as I am a beginner, I can't get my head across this. I'm building an instagram clone using DRF and was able to atta ...
I am new to Django and I am trying to exclude a model field in nested serializer. modals.py serializers.py I am trying to exclude comment which ...
I have an old Django Project, which I started when I was a beginner. So far it worked but, due to some code refactoring I would like to do, I would li ...
I want to creato objects through admin-pannel Django, I enter a value for a parameter and I want a qr code to be generated based on this value, my cod ...
I have Country, State and City models which are chained by foreign keys as shown below: class Country(models.Model): name = models.CharField(max_ ...
I'm viewing my admin site, but in the Add Groups page, I can still see the available permissions that I have deleted before. and in my models.py I hav ...
After reading this django.db.utils.OperationalError: 3780 Referencing column and referenced column are incompatible and SQLSTATE[HY000]: General error ...
My app links invoices, contracts and services with Many-to-One-Relationships: Whenever a new invoice is registered, it can be linked to a service a ...
I have created a booking form using Django forms. For selecting a time I have a series of choices. However, I want to only display those choices in th ...
When I send an image to the bank to save, it always returns this message "This field is required." but I fill the field with an image but it always re ...
Problem: Joining 2 models in Django. Error: Error during template rendering. Direct assignment to the reverse side of a many-to-many set is prohibite ...
I have a challenge with designing Django model that has existing rows in one of the column as shown below:- Gaming device in use ...
I am implementing a search bar that returns the users and the posts. I am able to return the data but when I clear the search bar I get the error retu ...
I've been having an issue with setting the ForeignKey in one of my model fields for the author variable. See below: As soon as I add "null=True" to ...
Is there any way to construct a query like the following using Django ORM? ...
I'm still a beginner and I'm stuck in a challenging spot for me. I can't get data from a foreign key table to be inserted "correctly" into a column of ...
I have created a view to search posts based on their body text. I added a breakpoint to the view and I tested it with mutliple search terms and it wor ...