I am hosting a web app on pythonanywhere.
In one of my models I have this field, capturing the datetime when the user performs a certain action (submits a form in this case), which subsequently gets recorded in the database.
from django.utils import timezone
upload_datetime = models.DateTimeField('date uploaded', default=timezone.now())
However, seen in the image below, most of the rows in the database display the exact same time. This should under normal circumstances be a very rare case, so I am assuming a bug here. Can I get any help on where to start looking?
Database entries of upload_datetime
Aucun commentaire:
Enregistrer un commentaire