Write Django as usual, and let django2-propeller
make template output into code based on Google's Material Design Standards & Bootstrap.
- Python 3.3, 3.4, 3.5, or 3.6
- Django >= 2.0
- Install using pip:
pip install django2-propeller
-
Add to INSTALLED_APPS in your
settings.py
:'django2_propeller',
-
In your templates, load the
django2_propeller
library and use thepropeller_*
tags:
{% load propeller %}
{# Display a form #}
<form action="/url/to/submit/" method="post" class="form">
{% csrf_token %}
{% propeller_form form %}
{% buttons %}
<button type="submit" class="btn btn-primary">
{% propeller_icon "star" %} Submit
</button>
{% endbuttons %}
</form>
The full documentation is at https://django2-propeller.readthedocs.io/en/latest/
The demo application provides a number of useful examples.
clone the repo:
$ git clone https://github.com/RaddishIoW/django2-propeller.git
cd into the cloned directory:
$ cd django2-propeller
run the testserver:
$ python manage.py runserver
open your browser and browse to:
http://127.0.0.1:8000
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/RaddishIoW/django2-propeller/issues
Propeller: http://propeller.in/
Bootstrap: http://getbootstrap.com/
Google Material Design: https://material.io/
You can use this under MIT License. See LICENSE file for details.
Originally developed and maintained by Thorsten Fröhlich, based on the idea of django-bootstrap3 from Dylan Verheul. This package is updated by Adam Radestock to work with Django 2