Top "Django-timezone" questions

Timezone handling specific questions with Django

django's timezone.now does not show the right time

My server is located in London. In my settings.py I have: TIME_ZONE = 'Europe/Moscow' USE_TZ = True But …

django django-timezone
django DateTimeField with UTC offset?

I have a model with a DateTimeField: deadline = models.DateTimeField(verbose_name="Valid unitl", null=True, blank=True) Users should …

python django django-timezone
DateTimeField received a naive datetime

I have model with DateTimeField column. I'm try to insert row with database current_time value directly into table by …

python mysql django datetime django-timezone
Django default=timezone.now() saves records using "old" time

This issue has been occurring on and off for a few weeks now, and it's unlike any that has come …

python django django-timezone
Django settings USE_TZ, TIME_ZONE and django rest framework

In Django tutorials, there is a sentence described like below. TIME_ZONE ... When USE_TZ is False, this is the …

django datetime django-rest-framework django-timezone
ValueError: Incorrect timezone setting while migrating manage.py file in Django

I am following the Django official documentation for writing my first app using Django. Here, it says that I have …

python django timezone django-timezone
Timezone.now() vs datetime.datetime.now()

When should I be using django's timezone.now() and when should I be using python's datetime.datetime.now(). For example, …

python django datetime django-timezone
Django - How to run a function EVERYDAY?

I want to run this function everyday midnight to check expiry_date_notification. what can I do? I'm new to …

django date notifications recurrence django-timezone
How to format DateTimeField in Django Admin to localtime?

How to format DateTimeField in Admin according to localtime and timezone ? My settings.py: TIME_ZONE = 'Europe/Bratislava' LANGUAGE_CODE = …

django django-admin django-timezone