Rijkshuisstijl boilerplate for Django.
Project description
Rijkshuisstijl boilerplate for Django.
- Version:
0.1.1
- Source:
- 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
Built Distribution
File details
Details for the file django-rijkshuisstijl-0.1.5.tar.gz
.
File metadata
- Download URL: django-rijkshuisstijl-0.1.5.tar.gz
- Upload date:
- Size: 2.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2356cb7d3b5a4bc532e3abafc6cf2cb79c95b3de134625987e283eac0116e078 |
|
MD5 | 2445b683526937abcd51c9a887c0fa3d |
|
BLAKE2b-256 | a8a435950a834735047a46abe48b3071c384506ecc17a51d47356d41e4aca80f |
File details
Details for the file django_rijkshuisstijl-0.1.5-py2.py3-none-any.whl
.
File metadata
- Download URL: django_rijkshuisstijl-0.1.5-py2.py3-none-any.whl
- Upload date:
- Size: 2.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2353650abae829e4c43894053350aae15d13cb8c9bc1a06e6de1606e1cbe6fdc |
|
MD5 | 831a5c5a519c8fb511cdd051d9551335 |
|
BLAKE2b-256 | 1d09b41bad7918eab1d0a0c85afe8222545903151884b5039a015469b8c75fda |