Skip to main content

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

Metadata

Release files for django-paintstore 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-paintstore 0.2
File Size Uploaded
django-paintstore-0.2.tar.gz 101.1 kB Details

Release files / django-paintstore-0.2.tar.gz

Download URL django-paintstore-0.2.tar.gz
Size 101.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8f7326576f0618e4f038d583dbb560a598dda23a759d58f8c16e2e1c367f9d8b
BLAKE2b-256 checksum
How to use checksums
10e8f55c93c043b73e6227ca903f68e0c36317ab15383f9d521faa8d14c76289
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page