v0.19.0.rst 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. CodeRed CMS 0.19.0 release notes
  2. ================================
  3. Bug fixes
  4. ---------
  5. * Support custom image models by correctly using ``WAGTAILIMAGES_IMAGE_MODEL``
  6. versus hard-coding ``wagtailimages.Image``.
  7. * Fix custom CSS class and Google Maps API key in Google Map block.
  8. * ``coderedcms start`` now pins the version of CodeRed CMS in the generated
  9. ``requirements.txt`` file.
  10. New features
  11. ------------
  12. * Upgraded to Wagtail 2.9
  13. * Upgraded to Bootstrap 4.5 and jQuery 3.5.1
  14. * Button and Link blocks can now link to fragments. See new :doc:`block
  15. documentation </features/blocks/index>`.
  16. * ``coderedcms start`` no longer creates a boilerplate Dockerfile. This has
  17. been replaced with a more thorough guide: :doc:`/how_to/docker`.
  18. * New guide: :doc:`/how_to/headers_and_footers`
  19. * As of 0.19, we will no longer maintain separate versions of docs for each
  20. release. The single stable docs will contain notes for each feature if that
  21. feature is changed, added, or removed in a particular release.
  22. Upgrade considerations
  23. ----------------------
  24. * For Wagtail 2.9 ``SiteMiddleware`` and ``request.site`` are deprecated.
  25. Custom code in your project should be updated as so:
  26. * In python, replace ``request.site`` with ``Site.find_for_request(request)``.
  27. * In Python, to load a site setting, replace
  28. ``Setting.for_site(request.site)`` with ``Setting.for_request(request)``.
  29. * In HTML templates, replace ``request.site`` with:
  30. .. code-block:: html
  31. {% load wagtailcore_tags %}
  32. {% wagtail_site as site %}
  33. <p>Your site name is: {{site.site_name}}</p>
  34. * Following these changes, you should then remove
  35. ``wagtail.core.middleware.SiteMiddleware`` from the Django ``MIDDLEWARE``
  36. (in ``settings/base.py``)
  37. * If you have overridden ``coderedcms/pages/base.html``, you may need to update
  38. references to ``jquery-3.4.1`` to ``jquery-3.5.1``.
  39. * If using SASS, you may need to update your ``custom.scss`` and/or
  40. ``_variables.scss`` files accordingly to support Bootstrap 4.5. To see what
  41. you might need to change in your ``_variables.scss``, see `the variables diff
  42. of Bootstrap 4.3 to 4.5`_. Or to continue using Bootstrap 4.3, `download a
  43. copy of the Bootstrap 4.3 sources`_ and change the references in your
  44. ``custom.scss`` to use these files.
  45. * It is assumed that all CodeRed CMS sites prior to 0.19 are using the built-in
  46. Wagtail Image model, as this was previously hard-coded in CodeRed CMS. If (and
  47. only if) you plan to switch to a custom image model, a custom data migration
  48. will be necessary. This migration would follow the same process as any other
  49. Wagtail installation; there is nothing unique relating to CodeRed CMS.
  50. * You may need to run ``python manage.py makemigrations website`` and
  51. ``python manage.py migrate`` after upgrading.
  52. .. _the variables diff of Bootstrap 4.3 to 4.5: https://github.com/coderedcorp/coderedcms/commit/fa852ebc9d714d34b25c390321e5a6d563156097#diff-a68086c64c5d52852fda5605321c3eb9
  53. .. _download a copy of the Bootstrap 4.3 sources: https://getbootstrap.com/docs/4.3/getting-started/download/
  54. Thank you!
  55. ----------
  56. Thanks to everyone who contributed to `0.19.0 on GitHub <https://github.com/coderedcorp/coderedcms/milestone/26?closed=1>`_.