28👍
✅
According to the documentation:
TIME_ZONE
Default: ‘America/Chicago’
A string representing the time zone for this installation, or None.
Instead of utc+6.00
, set the TIME_ZONE
to Asia/Dhaka
:
TIME_ZONE = 'Asia/Dhaka'
0👍
Cygwin: install "tzdata" package
I’m running MobaXterm (a Cygwin flavor) and so my /usr/share/zoneinfo directory was empty.
And then Django wouldn’t start properly.
I fixed this by installing the tzdata
package.
That populated the zoneinfo directory nicely…
$ tree /usr/share/zoneinfo | head
/usr/share/zoneinfo
├── Africa
│ ├── Abidjan
│ ├── Accra
│ ├── Addis_Ababa
│ ├── Algiers
│ ├── Asmara
│ ├── Asmera
│ ├── Bamako
│ ├── Bangui
…and then Django started up fine.
- Signing in leads to /accounts/profile/ in Django
- Django: How to keep the test database when the test is finished?
- Django: How to check if something is an email without a form
- FastCGI application behind NGINX is unable to detect that HTTPS secure connection is used
Source:stackexchange.com