I would like to request some assistance regarding this matter
I am learning django and trying out some codes but I hit a brick wall at trying to get the date only fr
SCHEDULED_AT
is set to null=True
, so sometimes item.SCHEDULED_AT
doesn't have value so it's None
. If you do a .strftime
on None
it will have the error you got. null=True
means django model allows the field to have NULL
value.
By the way, it's really bad practice to use all upper case for model and field names, model name should be camel case and fields should be lower case with underscore. You model name should be ApplicantData
, field name should be scheduled_at
.