[Answered ]-Django.db.utils.IntegrityError: NOT NULL constraint failed: pages_add_music.upload error

1👍

You can always change that field to:

upload = models.DateTimeField(auto_now_add=True, null=True)

that should fix that problem.

PS you should not name classes with snake_case. It’s bad habit.

Leave a comment