'str' object has no attribute 'tzinfo'
groups.google.com › g › django-usersJan 03, 2018 · It looks like you're trying to localize a string, which is not a datetime object and, thus, doesn't have a tzinfo property. You'll have to convert your string to a datetime before trying to localize it. ... \AppData\Local\Programs\Python\Python36\lib\site-packages\pytz\__init__.py in localize.