Skip to content

v. 4.0

Compare
Choose a tag to compare
@vstoykov vstoykov released this 02 Mar 18:45
· 140 commits to develop since this release

This is major version which will drop compatibility with old Python and Django versions.

  • Supported Python versions are: 2.7, 3.3, 3.4, 3.5
  • Supported Django Versions are: 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11

Upgrading from 3.x

Except from dropping support from older Python and Django versions there are no major changes in the API and most users will do not need to change anything in their code in order to upgrade from 3.x to 4.0. Still you can look down for Backward incompatible changes

Changes since 3.3

Full changelog 3.3...4.0

Highlights

  • Add support for Django 1.10 and 1.11
  • Move imagekit.templatetags.compat outside of imagekit.templatetags (Fixes #330, #331 and #352)
  • Include the test suite in the sourcetarball but do not install it. It can be used
    by distribution packages during build time (#363)
  • Various tests improvements:
    • Replace Lenna image in tests with a truly free alternative (#364)
    • Tests no longer leave junk (Fixes #382)
  • honor post_save's update_fields and only fire the source_saved signal when needed (#390)
  • Close the file only if it has been opened locally (Fixes #404)
  • autodiscover works with AppConfig (#412)
  • Add wheels support (#411)
  • Do not try south modelinspector when not needed (Fixes #408)
  • Improve caching (Fixes #399 #402)

Backward incompatible changes

Most of the changes probably will not affect you but still there are changes that can affect you:

  • If you import something from imagekit.templatetags.compat (it's internal API and you should not import anything from there) then you need to fix your imports because this module is now moved to imagekit.compat
  • If you have set IMAGEKIT_CACHE_BACKEND and rely on TIMEOUT defined there it will no longer use that value. Now by default in production (when DEBUG = False) timeout will be None which means forever. If you want to change this value you need to set IMAGEKIT_CACHE_TIMEOUT