Skip to main content

Rijkshuisstijl boilerplate for Django.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_rijkshuisstijl-0.3.1.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

django_rijkshuisstijl-0.3.1-py2.py3-none-any.whl (4.9 MB view details)

Uploaded Python 2Python 3

File details

Details for the file django_rijkshuisstijl-0.3.1.tar.gz.

File metadata

  • Download URL: django_rijkshuisstijl-0.3.1.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for django_rijkshuisstijl-0.3.1.tar.gz
Algorithm Hash digest
SHA256 f22093ca3c416c40604fd50275515675d4eda3f9c48d209be9f122c6a186c045
MD5 384894d2bba1e96bb5527c88fc6e96bc
BLAKE2b-256 916ee8f2df7b659650ff40a2837068af07c0515da4c8cf158c9b70679737c3f4

See more details on using hashes here.

File details

Details for the file django_rijkshuisstijl-0.3.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_rijkshuisstijl-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c339fb750dc4252d61b3b233e8e56c1148608a47e91f6c458fb28f1bb2d591bd
MD5 72ab15d39b891b50d0bb211d714283fa
BLAKE2b-256 f070ed42374730488103b0207b339474b1ef972e24b5dd4124c92ebaa0922719

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page