Skip to main content

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

Project description

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.

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-0.1.2.tar.gz (5.6 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-colorful-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f1e87a39fccdf4a29bc523f26061761fb5f5ec4dc88bbe95b1e4823f6df8ad3a
MD5 71142c1f013717e89b4e657b0d3afe24
BLAKE2b-256 56ce95a546de7373e7cf26b3f28b1be1dd9a94e492ea15f030a6d7ece576f99d

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