зеркало из https://github.com/mozilla/bedrock.git
920d418757
* Allow disabling Markus when DEBUG=True (default: keep it enabled) * Add Wagtail 5.2 LTS as a dependency * Hook in Wagtail Admin, while also keeping jinja-template rendering happy * Support user-uploaded images into the CMS, both with local and cloud storage options Of course, the cloud storage option is the only one we'll use when deployed. Note that this also disables CSP for any routes inside the Wagtail admin (but not pages rendered by Wagtail) * Drop in wagtail-localize, ready for i18n/l10n Also fix up some test regressions as a result of this change, including changing how Careers renders a custom 404-page message * Lay in intial 'cms' app as home for our Wagtail-related modelling. * Support detection of CMS-based pages so that we don't falsely redirect away from pages managed by wagtail-localize * Wrap simple CMS test page in a Protocol-based base template to confirm we load the right strings and get the lang picker * Ensure that pages fall back (in their enriety) if we don't have a page with the matching lang code in the CMS * Exclude the cms-admin path from the sitemap - doesn't need to be discoverable * Remove now-redundant print statement from a data migration * Add tests to show locales from page models are used as translations for pages * Add tests to show that pages with restrictions (e.g. passwords) should not be cached downstream * Add tests for StructuralPage, confirming it redirects to its parent if accessed directly * Expand test coverage to include serve_preview for our base page model * Fixup accidentally-commented-out app in INSTALLED_APPS Co-authored-by: Ryan Johnson <escattone@gmail.com> * Improve comment related to local GCS credentials, clarifying who will/won't need them and why * Disable use of Gravatar URLs for Wagtail users Low benefit to us, because they need CSP tweaks and also would need scrubbing before the DB export. * Fix labelling of Wagtail's homepage * We don't want wagtailforms enabled in our setup: public bedrock is read only * Back out hack to 404.html for careers-related 404 -- unnecessary following i18n/routing refactor * Back out unnecessary follow=True on the 404 test * Ensure that demos run migrations on their local DB, so that any new Wagtail tables get made ASAP, preventing 500s * Add a fake spec for WAGTAIL_CONTENT_LANGUAGES in Pocket mode, so that it'll boot. We won't be using wagtail for Pocket mode * Rename MEDIA_URL from user-media to custom-media, to make it easier to grasp --------- Co-authored-by: Ryan Johnson <escattone@gmail.com> |
||
---|---|---|
.. | ||
mozorg-demo.env.yaml | ||
pocket-demo.env.yaml |