Skip to main content

A Django app that integrates jQuery ColorPicker with the Django admin.

Project description

django-paintstore is a Django app that integrates jQuery ColorPicker with the Django admin

Quickstart

  1. Install the app with your preferred Python packaging utility, for example:

    pip install django-paintstore
    
  2. Add the application to the INSTALLED_APPS in settings.py:

    INSTALLED_APPS = (
        # ...
        'paintstore',
    )
    
  3. Add a ColorPickerField to your model:

    # ...
    from paintstore.fields import ColorPickerField
    
    class ColorfulModel(models.Model):
        title = models.CharField(max_length=25)
        color = ColorPickerField()
    
  4. Optional: Edit colors directly in your model’s change list admin:

    class ColorfulModelAdmin(admin.ModelAdmin):
        list_display = ["title", "color",]
        list_editable = ["color",]
    

TODOS

  • Replace text input showing color hex code with a swatch of the color selected
  • Docs (prep to add to Read the Docs)
  • Tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-paintstore, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-paintstore-0.2.tar.gz (101.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page