django-morris
A hexadecimal color field with a preview.
Installation
- Run
pip install django-morris - Add
morristosettings.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.
Release files for django-morris 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-morris-0.2.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_morris-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / django-morris-0.2.1.tar.gz
| Download URL | django-morris-0.2.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbc3c8c6164c60026ff50c62c8924b125c51dd9e37d8940b5954c1cc928d5f08
|
|
BLAKE2b-256 checksum How to use checksums |
1fd5adf57abdc74cba81ce143fb8ee1e40ca34019c7a92c29c115f3c09ebf8c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / django_morris-0.2.1-py3-none-any.whl
| Download URL | django_morris-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d7755efa7b5a166642f3d72e5678cd181fa62b3ac1903ec168e048c0ebf9cda
|
|
BLAKE2b-256 checksum How to use checksums |
8f2362fad3fd3763da94c06e8ac07bfa1e76ebf63ea8bbc060e6bd39740bc53a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|