Skip to main content

Rijkshuisstijl boilerplate for Django.

Version:

0.3.1

Source:

https://github.com/maykinmedia/django-rijkshuisstijl

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)

Source distribution for django-rijkshuisstijl 0.3.1
File Size Uploaded
django_rijkshuisstijl-0.3.1.tar.gz 4.7 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-rijkshuisstijl 0.3.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.5

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page