Zonkey-branded Django templates for OnaData's user-facing auth pages
(login, logout, password reset, signup). Overrides OnaData's defaults
via the TEMPLATE_OVERRIDE_ROOT_DIR setting.
This repo is a sibling to the zonkey repo. Zonkey's docker-compose.yml
bind-mounts this directory into the OnaData api + celery containers at
/opt/overlay/site_template. The overlay settings module sets
TEMPLATE_OVERRIDE_ROOT_DIR = "/opt/overlay/site_template"; OnaData's
common.py then:
- Prepends
/opt/overlay/site_template/templatesto Django's template search path (so files intemplates/registration/override the OnaData-shipped equivalents atonadata/libs/templates/registration/) - Appends
/opt/overlay/site_template/statictoSTATICFILES_DIRS(so files instatic/are served at/static/<filename>)
```
.
βββ static/
β βββ onadata-logo.png
β βββ favicon-32x32.png
β βββ css/
β βββ ona-auth.css
βββ templates/
βββ base.html
βββ registration/
βββ login.html
βββ logout.html
βββ password_reset_{form,done,confirm,complete}.html
βββ registration_{form,complete}.html
```"OnaData, by Ona" posture: light gray background (#f8f9fa), OnaData
logo header, centered white card, Zonkey-orange (#ff5d00) on primary
buttons and inline links only.
No build step. Edit the template, save, and refresh the browser β Django re-reads templates on every request in development.
See the zonkey repo's DEVELOPMENT.md for the full docker-compose
setup.