Skip to main content

deactivate

Unset the time zone for the current thread.

Django will then use the time zone defined by settings.TIME_ZONE.

def deactivate()

Unset the time zone for the current thread. Django will then use the time zone defined by settings.TIME_ZONE.

Returns

TypeDescription
Nothing is returned; the thread-local state is modified in place.