Closed Bug 1540704 Opened 7 years ago Closed 7 years ago

upgrade to Django 2.2

Categories

(Socorro :: Webapp, task, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: jwhitlock)

Details

Attachments

(1 file)

The webapp uses Django 2.1. Today, Django 2.2 (LTS) came out and because of that work on Django 2.1 has ended. We should upgrade to Django 2.2 (LTS).

Release notes are here:

https://docs.djangoproject.com/en/2.2/releases/2.2/

This is something we should do, but there's no urgency right now so I'm making it a P3.

Priority: -- → P3

There is one new deprecation warning for the webapp with Django 2.2:

  /usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/storage.py:498: RemovedInDjango31Warning: CachedStaticFilesStorage is deprecated in favor of ManifestStaticFilesStorage.
    self._wrapped = get_storage_class(settings.STATICFILES_STORAGE)()

The webapp uses pipeline.storage.PipelineCachedStorage, which is derived from CachedStaticFilesStorage in django-pipeline 1.6.14, the current version. There are some options for switching, and the short-term strategy is to ignore this PendingDeprecationWarning in tests (currently treated as an error by pytest).

Other than this, the Django 2.2 upgrade looks painless.

Assignee: nobody → jwhitlock
Status: NEW → ASSIGNED

This has been deployed to prod.

Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: