Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

crispy_forms_primer-0.2.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file crispy_forms_primer-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: crispy_forms_primer-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for crispy_forms_primer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1c41cc9c98f1faaa993977e97e17ec772a1015e130c059e317052c279cfc4e8
MD5 66189906b92b764228d2e92d5a99c394
BLAKE2b-256 aaa50254efa5e8df77865f20097b8349aaaa7ce9239f57e979b10c76544f0837

See more details on using hashes here.

Supported by

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