How to Solve NameError: name 'timezone' is not defined -- django
Erorr: name 'timezone' is not defined
NameError: name 'timezone' is not defined
Solution: name 'timezone' is not defined
# Add the following line to the top of your code
from django.utils import timezone
For more information:
Django timezone