emencia / django-blog-lotus

A weblog application with Django.
https://django-blog-lotus.readthedocs.io/
MIT License
5 stars 1 forks source link

Warnings about deprecated 'django.utils.timezone.utc' #59

Closed sveetch closed 8 months ago

sveetch commented 9 months ago

Describe the bug There is currently a huge amount of warnings when running tests and essentially from django for timezone:

RemovedInDjango50Warning: The django.utils.timezone.utc alias is deprecated. Please update your code to use datetime.timezone.utc instead.

Not really a bug but it is annoying and is potential breaking issue when deprecation will come to the end.

Environment Describe your environment:

To Reproduce Steps to reproduce the behavior:

  1. Run the full test suites in verbose mode
  2. See the amount of warning.

Expected behavior This is something that should not be very difficult to fix without breaking changes. We should just follow the deprecation notice hint.

sveetch commented 8 months ago

Removed warning for Django timezone, Django USE_I10N setting and factory boy for post generator.

There is still a deprecated about deprecated index_together but it seems to be related to taggit, since it is not used in Lotus models.