Skip to main content

An extension to the Django web framework that provides database and form color fields

Project description

[![Build Status](https://travis-ci.org/charettes/django-colorful.svg?branch=master)](https://travis-ci.org/charettes/django-colorful) [![Coverage Status](https://coveralls.io/repos/charettes/django-colorful/badge.png)](https://coveralls.io/r/charettes/django-colorful)

django-colorful is an extension to the Django web framework that provides database and form color fields (only RGB atm).

Written by Simon Charette Inspired by http://djangosnippets.org/snippets/1261/ Built with https://github.com/laktek/really-simple-color-picker

Usage

In order to use a color field you just have to add it to your model definition:

from django.db import models from colorful.fields import RGBColorField

class Tag(models.Model)

color = RGBColorField()

The extension will take care of providing the custom widget, just make sure you include the static files and jQuery >= 1.2.

In order to use with django.contrib.staticfiles add ‘colorful’ to project’s INSTALLED_APPS.

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-colorful-1.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

django_colorful-1.1.0-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-colorful-1.1.0.tar.gz.

File metadata

File hashes

Hashes for django-colorful-1.1.0.tar.gz
Algorithm Hash digest
SHA256 507f4124b85985069f5bcc6a65428bc4f25f2a8386cf557b04db3b6853cb16e9
MD5 d0b27fe949402472e3c1e190e3ded364
BLAKE2b-256 6f18117f1f48c2c7e530722749f8421a3b877401f3ce124c001cc899d018d217

See more details on using hashes here.

File details

Details for the file django_colorful-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_colorful-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c8f3e296dd2c43dd7c5fbaed94629ace7953e54a9c3a55a6fac18bedfac2d4f
MD5 bcf6e86068a42ad1aeea37eaee1659ec
BLAKE2b-256 d603b21a972363d35d978c07659a1371f284d1483183f2da32123f5f479d6d07

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