USWDS Documentation: https://designsystem.digital.gov/documentation/developers/
To add to your Django project, from the base directory:
git submodule add https://github.com/ChrisCompton/django_uswds
Submodules can be confusing to manage in your project, but are very powerful. You can learn more here.
In settings.py
:
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": ['django_uswds/templates'],
"APP_DIRS": True,
...
},
]
STATICFILES_DIRS = [
("uswds", BASE_DIR / "django_uswds/vendor/dist")
]
See templates/index.html
to get started, or copy into your own app.