In my project (made in Virtual Environment), when I run the server, it gives me no errors. But when I open the 127.0.0.1:8000 , it gives me an error saying:
A server error occurred. Please contact the administrator.
Had referred the below post to set the timezone to 'Asia/kolkata':-
How to add Indian Standard Time (IST) in Django?
It worked fine till yesterday and today I got an error in prompt as:
File "C:\Users\Ajay\Anaconda3\lib\site-packages\pytz\__init__.py", line 181, in timezone
raise UnknownTimeZoneError(zone)
pytz.exceptions.UnknownTimeZoneError: 'Asia/kolkata'
How to tackle this? (Using Django V2.1)
'Asia/kolkata' needs to be capitalized as 'Asia/Kolkata' in settings.py
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With