Contributing to the Template#
Ensure git is configured globally to use
mainas the default branch name.$ git config --global init.defaultBranch main
Follow the steps in Setting Up a Hydra Project to create a new project.
Make your changes in this new project, then commit to git on a new feature branch.
From this project’s directory (default
django-hydra) run retrocookie.This will attempt to take the git diff of the prior commit and apply it back to the template.
$ poetry shell # enter the poetry virtual env first $ retrocookie --branch=your-branch-name ../your-project-name
Warning
When adding new dependencies to a project, always delete the poetry.lock file and recreate it before committing, otherwise it won’t merge correctly.
Additionally, retrocookie does not currently support ignoring jinja syntax. Therefore you will need to manually backport any changes to jinja templates.
The documentation for retrocookie is here: https://pypi.org/project/retrocookie/
Upcoming Features#
Things we still want to do
caching everything possible (middleware for sure)
user useradmin
django-secure
django robots
user feedback
add django password validators
- Front end updates
SEO compatibility scrub
Accessibility compatibility scrub