Rijkshuisstijl boilerplate for Django.
- Version:
0.3.1
- Source:
- Keywords:
Django, rijkshuisstijl
- PythonVersion:
3.11
1 Features
Basic rijkshuisstijl (Dutch government branding) layout including headers, footer, buttons, forms and more.
Modular setup using inclusion tags.
Responsive
2 Installation
2.1 Requirements
Python 3.11 or above
setuptools 30.3.1 or above
Django 4.2 or above
2.2 Install
Install from PyPI with pip:
pip install django-rijkshuisstijl
Then add “rijkshuisstijl” and “sitetree” to INSTALLED_APPS.
3 Usage
Add CSS/JS/icons to your main template:
{% load rijkshuisstijl %}
<!DOCTYPE html>
<html lang="nl" class="views">
<head>
{% meta_css %}
{% meta_icons %}
</head>
<body class="view__body">
{% meta_js %}
</body>
Then add the basic structure, supply the current urls for various urls (depending on your project):
{% load rijkshuisstijl %}
<!DOCTYPE html>
<html lang="nl" class="views">
<head>
{% meta_css %}
{% meta_icons %}
</head>
<body class="view__body">
{% skiplink %}
{% login_bar details_url='#' logout_url='#' login_url='#' registration_url='#' %}
{% header %}
{% navigation_bar details_url='#' logout_url='#' login_url='#' registration_url='#' %}
<main class="view__content">
{% skiplink_target %}
</main>
{% footer %}
{% meta_js %}
</body>
See the documentation for further information about logos, navigation, forms and datagrids.
Metadata
Release files for django-rijkshuisstijl 0.3.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_rijkshuisstijl-0.3.1.tar.gz | 4.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_rijkshuisstijl-0.3.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 9.6 MB
Release files / django_rijkshuisstijl-0.3.1.tar.gz
| Download URL | django_rijkshuisstijl-0.3.1.tar.gz |
|---|---|
| Size | 4.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f22093ca3c416c40604fd50275515675d4eda3f9c48d209be9f122c6a186c045
|
|
BLAKE2b-256 checksum How to use checksums |
916ee8f2df7b659650ff40a2837068af07c0515da4c8cf158c9b70679737c3f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / django_rijkshuisstijl-0.3.1-py2.py3-none-any.whl
| Download URL | django_rijkshuisstijl-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.9 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c339fb750dc4252d61b3b233e8e56c1148608a47e91f6c458fb28f1bb2d591bd
|
|
BLAKE2b-256 checksum How to use checksums |
f070ed42374730488103b0207b339474b1ef972e24b5dd4124c92ebaa0922719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|