Error: Invalid Date/Time Format – The value “0000-00-00 00:00:00.000000” matches the format but is invalid as a date/time in Django validation
`your
class EnrollmentModel(models.Model):
Semesters=[
(1, ‘One’),
(2, ‘Two’),
(3, ‘Three’),
(4, ‘Four’),
(5, ‘Five’),
(6, ‘Six’),
(7, ‘Seven’),
(8, ‘Eight’),
]
How do I save the email address I received from the Kivymd interface in the Django model?
My goal is to save the data I receive from the Kivymd interface in the Django model. Actually, there is no problem in saving many types of data, but the e-mail part caused problems.
Auto-generated DRF route *-detail not found while using ViewSets
I try to use Django Rest Framework (DRF) with HyperlinkedModelSerializers, ViewSets and a Routers.
Auto-generated DRF route *-detail not found while using ViewSets
I try to use Django Rest Framework (DRF) with HyperlinkedModelSerializers, ViewSets and a Routers.
Got attribute error when trying creating model
I got this error message
Got attribute error when trying creating model
I got this error message
Got attribute error when trying creating model
I got this error message
Is there any option to get “to-many” relation objects while saving “parent” object?
I have three models
Nested Serializer with Foreign Key and to_field
Stock model has a OneToMany relationship with Data model. I am using the to_field to link them via model_number field.
Django Rest Framework – testing serializers vs testing views
I’m writing a new Django app with Django Rest Framework and trying to use TDD as much as I can but I’m a bit unsure as to where to draw the line between testing the serializer and testing the view.