Skip to content

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

License

Notifications You must be signed in to change notification settings

marcin-koziol-iteo/django-paintstore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-paintstore

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.6%
  • Python 1.2%
  • CSS 1.2%