Django-DSFR
Django-DSFR is a Django app to integrate the French government Design System (“Système de design de l’État français”).
This app was created as a part of Open Collectivités and is very much a work in progress. See the documentation (in French) for details.
Django-DSFR (partly) implements the version 1.2.1 of the DSFR.
Requirements
Tested with Python 3.7/3.8/3.9 and Django 3.2.5. Per vermin, it should work with Python >= 3.0, and it should work with old versions of Django too.
Quick start
Install with
pip install django-dsfr.Add “dsfr” to INSTALLED_APPS in your settings.py like this, before the app you want to use it with:
INSTALLED_APPS = [ ... 'dsfr', <your_app> ](Optional) Add the context processor to your settings.py and create an instance of “DsfrConfig” in the admin panel:
TEMPLATES = [ { [...] "OPTIONS": { "context_processors": [ [...] "dsfr.context_processors.site_config", ], }, }, ]Include the tags in your base.html file (see example file at https://github.com/entrepreneur-interet-general/django-dsfr/blob/main/example_app/templates/example_app/base.html)
Start the development server and visit http://127.0.0.1:8000/
Metadata
Release files for django-dsfr 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-dsfr-0.6.1.tar.gz | 4.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_dsfr-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.9 MB
Release files / django-dsfr-0.6.1.tar.gz
| Download URL | django-dsfr-0.6.1.tar.gz |
|---|---|
| Size | 4.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd7a186ff71315de19c002946d95339f0c3c79ccc3a197f7f148e0630d969dc7
|
|
BLAKE2b-256 checksum How to use checksums |
914dcdd2b4a9f2b60b901bb91f2366ef26117afd1c4ff614118a9fcffe02aba5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-1022-azure
|
Release files / django_dsfr-0.6.1-py3-none-any.whl
| Download URL | django_dsfr-0.6.1-py3-none-any.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3e1578e54a69fdd3eda194857354a8c52f77c0ca40e4c2bb286da698537aa4c
|
|
BLAKE2b-256 checksum How to use checksums |
f939e3cc35eca1d64c30b2231171f9dab56d0bbc99c3aca6186b7f018c9f1066
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.9.9 Linux/5.11.0-1022-azure
|