Django application to add 'django-crispy-forms' layout objects for Github Primer
Project description
Introduction
This is a Django application to add django-crispy-forms layout objects for Primer.
⚠ This app does not include Primer assets, you will have to install them yourself in your projects.
❗ This is pre-alpha software, I will be amending the initial commit for a while. You may not want to use it in production environment.
Prerequisites
Installation
The best way to install is by using pip:
$ pip install crispy-forms-primer
Or you could install the development version directly from GitHub:
$ pip install git+https://github.com/galeo/crispy-forms-primer
Add the app in INSTALLLED_APPS like this:
INSTALLED_APPS = (
...
'crispy_forms',
'crispy_forms_primer',
...
)
Change crispy template pack settings to start using it in your forms:
# Default layout to use with 'crispy_forms'
CRISPY_TEMPLATE_PACK = 'primer'
All other django-crispy-forms settings option apply, see its documentation for more details.
License
MIT License
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 Distributions
Built Distribution
Hashes for crispy_forms_primer-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a0130895bbd1c5704f0b6933682d6e84fcd2cd650366801dbc62b5479ea4884 |
|
MD5 | d8cc1d2d19d17a4977710a9cf29bd6be |
|
BLAKE2b-256 | 4b58ce8e9730443e9221bb6d7f9443b6b37f061943dd40d835d3bb2873d77f64 |