# Deprecation of "DEFAULT\_FILE\_STORAGE" - Can we easen the migration?

**URL:** <https://forum.djangoproject.com/t/deprecation-of-default-file-storage-can-we-easen-the-migration/34284>\
**Category:** Django Internals\
**Created:** [August 29, 2024, 7:16am UTC](https://forum.djangoproject.com/t/deprecation-of-default-file-storage-can-we-easen-the-migration/34284 "2024-08-29T07:16:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![carltongibson](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/carltongibson/32/267_2.png) [@carltongibson](https://forum.djangoproject.com/u/carltongibson)\
**Post date:** [August 29, 2024, 7:38am UTC](https://forum.djangoproject.com/t/deprecation-of-default-file-storage-can-we-easen-the-migration/34284/2 "2024-08-29T07:38:12Z")

</div>

Hey @GitRon.

So, the new `STORAGES` has been around since Django 4.2. [The old settings were deprecated then](https://docs.djangoproject.com/en/5.1/releases/4.2/#features-deprecated-in-4-2), and have been issuing warnings for the whole time since. The advice on [How to upgrade Django](https://docs.djangoproject.com/en/5.1/howto/upgrade-version/#resolving-deprecation-warnings) shows running with those warnings enabled, but they’ve been noisy by default for a full major version, and you can use the `-Werror` flag to make that stronger still.

The issue here isn’t so much that the deprecation period expired by that there was no error raised in Django-storages it seems.

We had similar issue in `django-compressor` ([that I have a related thread on](https://forum.djangoproject.com/t/document-storagehandler-as-public-api/32101)) but in that case it simply broke on 5.1 prior to our changes. We had a tracking ticket for the entire time between the 4.2 alpha and the 5.1 alpha, when we finally addressed it.

The bottom-line (it seems to me) is that we **have to** remove the warnings at **some** point. The two major versions policy seems to give plenty of warning… [The release notes for each version again list the items that reached the end of the deprecation cycle](https://docs.djangoproject.com/en/5.1/releases/5.1/#features-removed-in-5-1).

When updating, I will add an assert to my projects along the lines of `assert not DJ51, "Must update to new STORAGES setting before upgrade"`. I find that quite manageable.

I’m wondering what else Django itself might reasonably do here? 🤔

---

_[View the full topic](https://forum.djangoproject.com/t/deprecation-of-default-file-storage-can-we-easen-the-migration/34284)._
