v0.19.0.rst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. CodeRed CMS 0.19.0 release notes
  2. ================================
  3. Bug fixes
  4. ---------
  5. New features
  6. ------------
  7. * Upgraded to Wagtail 2.9
  8. * Upgraded to Bootstrap 4.5 and jQuery 3.5.1
  9. Upgrade considerations
  10. ----------------------
  11. * For Wagtail 2.9 ``SiteMiddleware`` and ``request.site`` are deprecated.
  12. Custom code in your project should be updated as so:
  13. * In python, replace ``request.site`` with ``Site.find_for_request(request)``.
  14. * In Python, to load a site setting, replace
  15. ``Setting.for_site(request.site)`` with ``Setting.for_request(request)``.
  16. * In HTML templates, replace ``request.site`` with:
  17. ..code-block: html
  18. {% load wagtailcore_tags %}
  19. {% wagtail_site as site %}
  20. <p>Your site name is: {{site.site_name}}</p>
  21. * Following these changes, you should then remove
  22. ``wagtail.core.middleware.SiteMiddleware`` from the Django ``MIDDLEWARE``
  23. (in ``settings/base.py``)
  24. * If you have overridden ``coderedcms/pages/base.html``, you may need to update
  25. references to ``jquery-3.4.1`` to ``jquery-3.5.1``.
  26. * If using SASS, you may need to update your ``custom.scss`` or
  27. ``_variables.scss`` files accordingly to support Bootstrap 4.5. Or you may
  28. continue using Bootstrap 4.3 by `downloading a copy of the Bootstrap 4.3
  29. sources <https://getbootstrap.com/docs/4.3/getting-started/download/>`_
  30. and changing the references in your ``custom.scss`` to use these files.
  31. * You may need to run ``python manage.py makemigrations website`` and
  32. ``python manage.py migrate`` after upgrading.