Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

django import timezone

from django.utils import timezone

now = timezone.now()
Comment

how to set indian timezone in django

#Tested it's working modify into settings.py file
TIME_ZONE = 'Asia/Kolkata'
Comment

django timezone settings

Here is the list of valid timezones:

http://en.wikipedia.org/wiki/List_of_tz_database_time_zones

You can use

TIME_ZONE = 'Europe/Istanbul'
for UTC+02:00
Comment

PREVIOUS NEXT
Code Example
Python :: install log21 python 
Python :: python swap 0 into 1 and vice versa 
Python :: pathlib recursive search 
Python :: how to stop running code in python 
Python :: cv2 add circle to image 
Python :: how to change web browser in python 
Python :: number of columns with no missing values 
Python :: python version command notebook 
Python :: python cube root 
Python :: python zip file open as text 
Python :: Plotting keras model trainning history 
Python :: python display map 
Python :: python send email outlook 
Python :: python get html info 
Python :: leap year algorithm 
Python :: python ndarray string array into int 
Python :: python how to remove the title of the index from dataframe 
Python :: tkinter label textvariable example 
Python :: switching versions of python 
Python :: Qslider pyqt 
Python :: pyqt tex 
Python :: load static files in django 
Python :: simulated annealing python 
Python :: coco.py 
Python :: text size legend to bottom matplotlib 
Python :: install python setuptools ubuntu 
Python :: generate number of n bits python 
Python :: python live radio 
Python :: python remove duplicates from a list 
Python :: run 2 loops simultaneously python 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =