Patternfly support for Django projects
Project description
django-patternfly
Patternfly integration for Django. Ported from django-bootstrap4
DISCLAIMER: This is a port done over the weekend and is a very poorly featured package. The only purpose for this currently is to provide a CSS to be used in your project templates
Goal
The goal of this project is to seamlessly blend Django and PatternFly.
Requirements
Python 3.9 or newer with Django >= 4.0 or newer.
Documentation
The full documentation is (will be) at https://django-patternly4.readthedocs.io/
Installation
-
Install using pip:
pip install django-patternfly4
-
Add to
INSTALLED_APPS
in yoursettings.py
:INSTALLED_APPS = ( # ... "patternfly", # ... )
-
In your templates, load the
patternfly
library and use thepatternfly_*
tags:
Example template
{% load patternfly %}
<html>
<head>
{% patternfly_css %}
</head>
<body>
{% block patternfly_content %}
Main Content
{% endblock %}
</body>
</html>
Development
Install poetry
$ pip install poetry
Bugs and suggestions
If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.
https://github.com/ayaseen/django-patternfly4/issues
License
You can use this under BSD-3-Clause. See LICENSE file for details.
Author
Developed and maintained by Amjad Yaseen
Please see AUTHORS.md for a list of contributors.
Project details
Release history Release notifications | RSS feed
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
Hashes for django_patternfly4-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f324e7d9012ae8ce85b82071e551f6862c5dbf0ab81b0071e62fd832ac52048 |
|
MD5 | 4da0eac8415700b830456359531f2f6d |
|
BLAKE2b-256 | 85ccd75ba745e9fa6a38a5b2cea4b436ffe3848c13119128fd03c1f4b50a42a6 |