Skip to main content

Patternfly support for Django projects

Project description

django-patternfly

CI Coverage Status

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.6 or newer with Django >= 2.2 or newer.

Documentation

The full documentation is (will be) at https://django-patternly.readthedocs.io/

Installation

  1. Install using pip:

    pip install django-patternfly
    
  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

$ conda install -c conda-forge 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/Rintsi/django-patternfly/issues

License

You can use this under BSD-3-Clause. See LICENSE file for details.

Author

Developed and maintained by Rintsi.

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-patternfly-0.0.1.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_patternfly-0.0.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file django-patternfly-0.0.1.tar.gz.

File metadata

  • Download URL: django-patternfly-0.0.1.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure

File hashes

Hashes for django-patternfly-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bdd7db9ed10c601491be04df3f94f44c078cd743ab7ec5d847547b907c85ce3b
MD5 dd74b1c4b2c96b4384b93841e0e403d4
BLAKE2b-256 906a20e413f84b209499076df6914fc7c0c18e4978a07cbc72578834ce30d018

See more details on using hashes here.

File details

Details for the file django_patternfly-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: django_patternfly-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure

File hashes

Hashes for django_patternfly-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6fe0263c17c6ee6e3426ea42754abe9dfbcfaa07aedc705aa36674cdaa74ef09
MD5 6f3926946cee51e168860378046b9a52
BLAKE2b-256 b244bc45b0a5d95c14bb93fa5cf97930f01fab5e3226846ef6861e918b742085

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