How to Solve NameError: name 'timzone' is not defined -- django

Solution: Import the 'timzone' module

To Solve the error, add the following line to the top of your code.

from django.utils import timzone

 

For more information:
Python django timzone