Skip to main content

Rijkshuisstijl boilerplate for Django.

Project description

Rijkshuisstijl boilerplate for Django.

Version:0.1.7
Source:https://github.com/maykinmedia/django-rijkshuisstijl
Keywords:Django, rijkshuisstijl
PythonVersion:3.6

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.6 or above
  • setuptools 30.3.0 or above
  • Django 1.11 or above

2.2   Install

Install from PyPI with pip:

pip install django-rijkshuisstijl

Then add “sitetree” and “rijkshuisstijl” 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.1.9.tar.gz (2.0 MB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page