feat: add optional Wagtail CMS integration#15
Merged
Conversation
Add use_wagtail cookiecutter option that integrates Wagtail CMS with a cms app (HomePage model), wagtail settings component, URL routing (/cms/ admin, /documents/, catch-all pages), and CI matrix coverage.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
use_wagtailcookiecutter option (default:n) to optionally integrate Wagtail CMS into generated projectscmsapp withHomePagemodel (Page + RichTextField) and app-level templates (base.html,home_page.html)wagtail.pysettings component withWAGTAIL_SITE_NAME,WAGTAILADMIN_BASE_URL,WAGTAILDOCS_EXTENSIONS, andDATA_UPLOAD_MAX_NUMBER_FIELDS/cms/(Wagtail admin),/documents/(document serving),/(catch-all page serving)INSTALLED_APPSandRedirectMiddlewaretoMIDDLEWAREuse_wagtail=nuse_drfxuse_wagtailcombinations (4 jobs)Test plan
use_wagtail=y use_drf=y— verify all wagtail files present, settings correct, app startsuse_wagtail=y use_drf=n— verify wagtail works without DRF configuse_wagtail=n— verify no cms app, no wagtail settings, no wagtail URLsdocker compose -f docker-compose.debug.yml up --buildand confirm/cms/admin loads