Skip to main content

A small app providing a colorpicker field for django

Project description

PyPI version

django-colorfield

This module fills the need of having a colorfield that's usable in both django models and forms.

django-colorfield

Makes use of jscolor.

Installation

  • Run pip install django-colorfield
  • Add colorfield to your INSTALLED_APPS
  • Collect static files with ./manage.py collectstatic

Usage

In your models, you can use it like this:

from django.db import models
from colorfield.fields import ColorField

class MyModel(model.Model):

    color = ColorField(default='#FF0000')

Maintainers

License

The MIT License (MIT)

Copyright (c) 2013-2015 Jared Forsyth jared@jaredforsyth.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

History

0.1.16

  • Remove warnings about ugettext_lazy usage

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-colorfield-0.1.17.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

django_colorfield-0.1.17-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file django-colorfield-0.1.17.tar.gz.

File metadata

  • Download URL: django-colorfield-0.1.17.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for django-colorfield-0.1.17.tar.gz
Algorithm Hash digest
SHA256 ea72e1ce422c3516df0d2d590516e96127ff6462837fffbf0d51a0a34d05d517
MD5 8cc910a82c4b6aeea5332401ea2fe0a2
BLAKE2b-256 db3c497837eeb9eb0f7149045ad271c68d6cec473983c54a5c3f99b3807479c9

See more details on using hashes here.

File details

Details for the file django_colorfield-0.1.17-py3-none-any.whl.

File metadata

  • Download URL: django_colorfield-0.1.17-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5

File hashes

Hashes for django_colorfield-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 c4435b4fead2bb1113e97dc21390ac843a3d942d5ad6f4b1a23644a208f5e9ed
MD5 0b14590c7f1c6276ad09c25dc63dd655
BLAKE2b-256 186945969c9576c968d5fc6f222a1be1e4f7866c82c988cd66c709c22650a797

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