Skip to main content

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

  1. Install using pip:

    pip install django-patternfly4
    
  2. Add to INSTALLED_APPS in your settings.py:

    INSTALLED_APPS = (
        # ...
        "patternfly",
        # ...
    )
    
  3. In your templates, load the patternfly library and use the patternfly_* 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


Download files

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

Source Distribution

django-patternfly4-0.0.3.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_patternfly4-0.0.3-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file django-patternfly4-0.0.3.tar.gz.

File metadata

  • Download URL: django-patternfly4-0.0.3.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for django-patternfly4-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ea8d779877841aba67653d8363685a3387733d49a8af55650ecc2807db8b78dd
MD5 d123866427b590daba3ef9272a493acb
BLAKE2b-256 774499b4f1c30763cb3d6f705cee7c4ceec65bebc58b5387b612dbd30fabe7b2

See more details on using hashes here.

File details

Details for the file django_patternfly4-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_patternfly4-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f324e7d9012ae8ce85b82071e551f6862c5dbf0ab81b0071e62fd832ac52048
MD5 4da0eac8415700b830456359531f2f6d
BLAKE2b-256 85ccd75ba745e9fa6a38a5b2cea4b436ffe3848c13119128fd03c1f4b50a42a6

See more details on using hashes here.

Supported by

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