Skip to main content

A hexadecimal django color field with a preview

Project description

django-morris

A hexadecimal color field with a preview.

Installation

  • Run pip install django-morris
  • Add morris to settings.INSTALLED_APPS
  • Run python manage.py collectstatic
  • Restart your application server

Usage

Models

Just add a color field to your models like this:

from django.db import models
from morris.fields import HexColorField

class MyModel(model.Model):
    color = HexColorField()

Credits

Heavily inspired from django-colorfield. If you need a color picker you should use django-colorfield instead of this package.

License

Released under 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 Distribution

django-morris-0.2.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

django_morris-0.2.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file django-morris-0.2.1.tar.gz.

File metadata

  • Download URL: django-morris-0.2.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for django-morris-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cbc3c8c6164c60026ff50c62c8924b125c51dd9e37d8940b5954c1cc928d5f08
MD5 449150346ebb35afdc8a50056275419c
BLAKE2b-256 1fd5adf57abdc74cba81ce143fb8ee1e40ca34019c7a92c29c115f3c09ebf8c4

See more details on using hashes here.

File details

Details for the file django_morris-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: django_morris-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for django_morris-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2d7755efa7b5a166642f3d72e5678cd181fa62b3ac1903ec168e048c0ebf9cda
MD5 8d378e0b2470e0e0e6cc4adaaa06c1af
BLAKE2b-256 8f2362fad3fd3763da94c06e8ac07bfa1e76ebf63ea8bbc060e6bd39740bc53a

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