model.ImageField in Django (and FileField, for that matter) are stored in the database to simply point at the location of a specific file. As a result, we can simply update the location of the file and have Django point at it to use a CDN.

Important

Django does not actually store images in its database, not as a blob or whatever. It is simply a reference to the location of the image.