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
tosettings.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
Release history Release notifications | RSS feed
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.1.0.tar.gz
(5.5 kB
view hashes)
Built Distributions
django_morris-0.1.0-py3.9.egg
(7.3 kB
view hashes)
Close
Hashes for django_morris-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 931d43e5ddc31a13af92f27e9913ce74c9458c9373691820eca908ae84c4a2b8 |
|
MD5 | c20f67c684fbf16426cbe4edbb4a7d64 |
|
BLAKE2b-256 | 2c02f77b40c1e6a47df23a026256932ee2842c5e958ec12f9e50a07fb6db7ac9 |