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.2.0.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for django_morris-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d8cb61db14f4ca95cd2a4ece5a1a5ec94b943a416cd3b53a07162a710063afb |
|
MD5 | 91e455ac1f7d8f5c702e9b2c28189f83 |
|
BLAKE2b-256 | e666b50a10b54067a3c3b2784beecdf4428952997fc07cbc6ec52888b1fbdefb |