Skip to main content

Rijkshuisstijl boilerplate for Django.

Project description

Rijkshuisstijl boilerplate for Django.

Version:

0.1.0

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.1.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

django_rijkshuisstijl-0.1.1-py2.py3-none-any.whl (1.8 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-rijkshuisstijl-0.1.1.tar.gz.

File metadata

  • Download URL: django-rijkshuisstijl-0.1.1.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.0

File hashes

Hashes for django-rijkshuisstijl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e57f041911a2131d33fdd6ced6ecaf35a228517c070d42840fc92cb5a9259e44
MD5 487fe4c5cc5753437f545859cecb939c
BLAKE2b-256 20aecb9f62785d930c6ce9957b037f48dbab402536cb93246ccdc18e03074bab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_rijkshuisstijl-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.0

File hashes

Hashes for django_rijkshuisstijl-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a48ff71a981ac6b1ef48ddf5e8ddfcc8bf0643b1339b519d9a2326382982b234
MD5 edef8bb0d8c25a4db1232c441d907a41
BLAKE2b-256 a15300e0be4d2347cc2746c4ff549d7ab696779d3ae982044c0c9b8931574566

See more details on using hashes here.

Supported by

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