Metadata-Version: 2.1
Name: crispy-forms-primer
Version: 0.4.3
Summary: Django application to add 'django-crispy-forms' layout objects for Github Primer
Home-page: https://github.com/galeo/crispy-forms-primer
Author: Yuwei Tian
Author-email: ibluefocus@nospam.outlook.com
License: MIT
Keywords: Django,django-crispy-forms,primer
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 2.2
Classifier: Framework :: Django :: 3.0
Classifier: Framework :: Django :: 3.1
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.6
Requires-Dist: Django (>=2.2)
Requires-Dist: django-crispy-forms (>=1.9.0)

crispy-forms-primer
===================

Introduction
------------

This is a Django application to add
`django-crispy-forms <https://github.com/django-crispy-forms/django-crispy-forms>`__
layout objects for `Primer <https://github.com/primer/css>`__.

⚠ This app does not include
`Primer <https://github.com/primer/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
-------------

-  `django-crispy-forms <https://github.com/django-crispy-forms/django-crispy-forms>`__

Installation
------------

The best way to install is by using ``pip``:

.. code:: shell

   $ pip install crispy-forms-primer

Or you could install the development version directly from GitHub:

.. code:: shell

   $ pip install git+https://github.com/galeo/crispy-forms-primer

Add the app in ``INSTALLLED_APPS`` like this:

.. code:: python

   INSTALLED_APPS = (
       ...
       'crispy_forms',
       'crispy_forms_primer',
       ...
   )

Change crispy template pack settings to start using it in your forms:

.. code:: python

   # Default layout to use with 'crispy_forms'
   CRISPY_TEMPLATE_PACK = 'primer'

All other
`django-crispy-forms <https://github.com/django-crispy-forms/django-crispy-forms>`__
settings option apply, see its documentation for more details.

License
-------

MIT License


