Backend Development
Backend Development
Extend Sparrow CMS with custom models, serializers, and management commands.
Page Models
Extend BaseWebPage for new page types. Add fields, StreamField bodies, and content panels. Create migrations with makemigrations.
Snippets
Create snippet models for reusable data (features, websites, components). Register with SnippetViewSet in wagtail_hooks.py.
Serializers
Add YAML serializers for snippet import. Extend GetOrCreateForeignObject with a yaml_tag and lookup_keys. Register in SPARROW_SERIALIZERS setting.
Import Files
YAML files in docker/import/. Use --- to separate documents. Reference other objects with !tag syntax. Import with python manage.py import_pages.