Please change this to `from django.utils.timezone import now` or `from django.utils import timezone`.