archweb icon indicating copy to clipboard operation
archweb copied to clipboard

Resolve django 5 deprecations

Open jelly opened this issue 3 years ago • 4 comments

../../../../../opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/django/conf/__init__.py:222
  /opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/django/conf/__init__.py:222: RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with Django 5.0, localized formatting of data will always be enabled. For example Django will display numbers and dates using the format of the current locale.
    warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning)

mirrors/tests/test_mirrorlist.py::MirrorListTest::test_mirrorlist
  /home/runner/work/archweb/archweb/mirrors/views/mirrorlist.py:45: RemovedInDjango50Warning: django.forms.BaseForm._html_output() is deprecated. Please use .render() and .get_context() instead.
    return self._html_output(

packages/tests/test_views.py::test_sitemap
  /opt/hostedtoolcache/Python/3.9.9/x64/lib/python3.9/site-packages/django/contrib/sitemaps/__init__.py:117: UnorderedObjectListWarning: Pagination may yield inconsistent results with an unordered object_list: <class 'main.models.Package'> QuerySet.
    return paginator.Paginator(self._items(), self.limit)

jelly avatar Jan 09 '22 18:01 jelly

I can take a try at this.

f09f909b avatar Feb 02 '22 11:02 f09f909b

Sure go ahead!

jelly avatar Feb 02 '22 11:02 jelly