how to set indian timezone in django

  1. Open your Django project's settings.py file.

  2. Locate the TIME_ZONE setting in the file.

  3. Change the TIME_ZONE setting to 'Asia/Kolkata' to set the Indian time zone. The updated line should look like this:

python TIME_ZONE = 'Asia/Kolkata'

  1. Additionally, you can set the USE_TZ setting to True if it's not already set. This ensures that Django uses time zone-aware datetimes.

python USE_TZ = True

  1. Save the changes to the settings.py file.

  2. Restart your Django development server to apply the changes.

Now, your Django project is configured to use the Indian time zone.