All Projects → fabiocaccamo → Django Colorfield

fabiocaccamo / Django Colorfield

Licence: mit
color field for django models with a nice color-picker in the admin. 🎨

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Django Colorfield

Django Jet
Modern responsive template for the Django admin interface with improved functionality. We are proud to announce completely new Jet. Please check out Live Demo
Stars: ✭ 3,207 (+1247.48%)
Mutual labels:  django, interface, admin
Jet Django
Jet Bridge (Django) for Jet Admin – Admin panel framework for your application
Stars: ✭ 168 (-29.41%)
Mutual labels:  django, interface, admin
Django Admin Interface
django's default admin interface made customizable. popup windows replaced by modals. :mage: ⚡️
Stars: ✭ 717 (+201.26%)
Mutual labels:  django, interface, admin
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+13.87%)
Mutual labels:  color, picker, colorpicker
Pickr
🎨 Flat, simple, multi-themed, responsive and hackable Color-Picker library. No dependencies, no jQuery. Compatible with all CSS Frameworks e.g. Bootstrap, Materialize. Supports alpha channel, rgba, hsla, hsva and more!
Stars: ✭ 3,759 (+1479.41%)
Mutual labels:  color, picker, colorpicker
Colorpicker
A mininal but complete colorpicker desktop app
Stars: ✭ 766 (+221.85%)
Mutual labels:  color, picker, colorpicker
Efcolorpicker
A lightweight color picker in Swift.
Stars: ✭ 205 (-13.87%)
Mutual labels:  color, picker, colorpicker
Open model zoo
Pre-trained Deep Learning models and demos (high quality and extremely fast)
Stars: ✭ 2,925 (+1128.99%)
Mutual labels:  models, model
Django Suit Dashboard
Create a dashboard within Django admin interface.
Stars: ✭ 75 (-68.49%)
Mutual labels:  django, admin
Django Translations
Django model translation for perfectionists with deadlines.
Stars: ✭ 109 (-54.2%)
Mutual labels:  django, model
Crudl Example Django
CRUDL with Django, DRF/Graphene and SQLite
Stars: ✭ 113 (-52.52%)
Mutual labels:  django, admin
Django Treenode
probably the best abstract model / admin for your tree based stuff. 🌳
Stars: ✭ 142 (-40.34%)
Mutual labels:  django, model
Django Material Admin
Material design for django administration
Stars: ✭ 163 (-31.51%)
Mutual labels:  django, admin
Typegoose
Typegoose - Define Mongoose models using TypeScript classes.
Stars: ✭ 1,189 (+399.58%)
Mutual labels:  models, model
Material Ui Color Picker
<ColorInput> component for material-ui
Stars: ✭ 74 (-68.91%)
Mutual labels:  color, picker
Bootstrap Colorpicker
Bootstrap Colorpicker is a modular color picker plugin for Bootstrap.
Stars: ✭ 1,351 (+467.65%)
Mutual labels:  color, colorpicker
Ara
ARA Records Ansible and makes it easier to understand and troubleshoot.
Stars: ✭ 1,176 (+394.12%)
Mutual labels:  django, interface
Colorpickerwpf
Simple color picker control for WPF
Stars: ✭ 71 (-70.17%)
Mutual labels:  color, picker
Color Picker
A simple color picker application written in pure JavaScript, for modern browsers.
Stars: ✭ 180 (-24.37%)
Mutual labels:  color, picker
React Colorpickr
A themeable colorpicker with HSL and RGB support for React
Stars: ✭ 180 (-24.37%)
Mutual labels:  color, colorpicker

django-colorfield

simple color field for your models with a nice color-picker in the admin-interface.

django-colorfield-hex django-colorfield-hexa

Installation

  • Run pip install django-colorfield
  • Add colorfield to settings.INSTALLED_APPS
  • Run python manage.py collectstatic
  • Restart your application server

Usage

Settings

This package doesn't need any setting.

Models

Just add color field(s) to your models like this:

from colorfield.fields import ColorField
from django.db import models

class MyModel(model.Model):
    color = ColorField(default='#FF0000')

Color Format

ColorField defaults to HEX format but also support HEXA. To set the format:

from colorfield.fields import ColorField
from django.db import models

class MyModel(model.Model):
    color = ColorField(format='hexa')

Color Palette

django-colorfield-palette

You can provide a palette to choose from to the widget by using the field choices

from colorfield.fields import ColorField
from django.db import models

class MyModel(model.Model):

    COLOR_CHOICES = [
        ("#FFFFFF", "white"),
        ("#000000", "black")
    ]

    color = ColorField(choices=COLOR_CHOICES)

Admin

The admin will kindly provide a simple color picker for all color fields. :)

Testing

# create python virtual environment
virtualenv testing_django_colorfield

# activate virtualenv
cd testing_django_colorfield && . bin/activate

# clone repo
git clone https://github.com/fabiocaccamo/django-colorfield.git src && cd src

# install dev requirements
pip install -r requirements.txt

# run tests
tox
# or
python setup.py test
# or
python -m django test --settings "tests.settings"

Credits

Originally developed by Jared Forsyth

License

Released under MIT License.


See also

  • django-admin-interface - the default admin interface made customizable by the admin itself. popup windows replaced by modals. 🧙 ⚡

  • django-extra-settings - config and manage typed extra settings using just the django admin. ⚙️

  • django-maintenance-mode - shows a 503 error page when maintenance-mode is on. 🚧 🛠️

  • django-redirects - redirects with full control. ↪️

  • django-treenode - probably the best abstract model / admin for your tree based stuff. 🌳

  • python-benedict - dict subclass with keylist/keypath support, I/O shortcuts (base64, csv, json, pickle, plist, query-string, toml, xml, yaml) and many utilities. 📘

  • python-codicefiscale - encode/decode Italian fiscal codes - codifica/decodifica del Codice Fiscale. 🇮🇹 💳

  • python-fsutil - file-system utilities for lazy devs. 🧟‍♂️

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].