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.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for django_morris-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d7755efa7b5a166642f3d72e5678cd181fa62b3ac1903ec168e048c0ebf9cda |
|
MD5 | 8d378e0b2470e0e0e6cc4adaaa06c1af |
|
BLAKE2b-256 | 8f2362fad3fd3763da94c06e8ac07bfa1e76ebf63ea8bbc060e6bd39740bc53a |