ValueError: invalid timezone setting when migrating manage.py file to Django

I follow the official Django documentation for writing the first application using Django.

It says here that I have to set TIME_ZONE to my time zone in the settings.py file.

Default value TIME_ZONE : "utc"

And I changed it to: "utc + 6.00"

After this edition, when I try to transfer the manage.py file:

python manage.py migrate 

A value error has occurred:

 ValueError: Incorrect timezone setting: UTC+6.00 

I apologize if this is a very simple question. But I could not understand the solution after several hours of searching on Google.

NB:

My time zone is Asia / Dhaka (+6: 00)

My os - Ubuntu 14.10

+6
source share
1 answer

According to the documentation :

TIME_ZONE

Default: 'America / Chicago'

A string representing the time zone for this setting, or None.

Instead of utc+6.00 set the TIME_ZONE parameter to Asia/Dhaka :

 TIME_ZONE = 'Asia/Dhaka' 
+11
source

Source: https://habr.com/ru/post/978817/


All Articles