Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 816 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 816 Bytes

Django USWDS Theme

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.