Skip to main content

Django Color Field

Project description

X-Net Django Color Field

A color field for Django models and forms.

Installation

  1. pip install x_net_django_color_field
  2. Add x_net_django_color_field to INSTALLED_APPS

Usage

Consider the following model using a ColorField

from django.db import models
from x_net_django_color_field.models import ColorField

class CustomModel(models.Model):
    color = ColorField(verbose_name="Color")

Consider the following form using a ColorField

from django.forms import forms
from x_net_django_color_field.forms import ColorField

class CustomForm(forms.Form):
    color = ColorField(label="Color")

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

x-net-django-color-field-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

x_net_django_color_field-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file x-net-django-color-field-1.0.0.tar.gz.

File metadata

  • Download URL: x-net-django-color-field-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for x-net-django-color-field-1.0.0.tar.gz
Algorithm Hash digest
SHA256 99618525c9dc941aaee7d9461377a9182607245ac85c01db92a1645e36027140
MD5 bc7b0958b5fa9a2de3ea86d698c4bc9a
BLAKE2b-256 c153c6c96b97009ef071dc6a1b51315340004aa741bdd29aaaa4503cfa8a087b

See more details on using hashes here.

File details

Details for the file x_net_django_color_field-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: x_net_django_color_field-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.12

File hashes

Hashes for x_net_django_color_field-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9249ba58cea3827126a7c8a052414eabe229c05bc9def869828b07e6f3153e2f
MD5 f19ce52e96f369700844140daf2fa0ab
BLAKE2b-256 a3e7946041509eb7cba57017ca80917ece2b77cfa8c1a13b8af73b2368fbe11f

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