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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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