Debian Codegraph @

README.rst

raw
1 django-paintstore
2 ==================
3
4 ``django-paintstore`` is a Django app that integrates `jQuery ColorPicker`_ with the Django admin
5
6
7 Quickstart
8 ----------
9
10 #. Install the app with your preferred Python packaging utility, for example::
11
12 pip install django-paintstore
13
14 #. Add the application to the ``INSTALLED_APPS`` in settings.py::
15
16 INSTALLED_APPS = (
17 # ...
18 'paintstore',
19 )
20
21 #. Add a ColorPickerField to your model::
22
23 # ...
24 from paintstore.fields import ColorPickerField
25
26 class ColorfulModel(models.Model):
27 title = models.CharField(max_length=25)
28 color = ColorPickerField()
29
30 #. Optional: Edit colors directly in your model's change list admin::
31
32 class ColorfulModelAdmin(admin.ModelAdmin):
33 list_display = ["title", "color",]
34 list_editable = ["color",]
35
36
37 TODOS
38 --------
39
40 - Replace text input showing color hex code with a swatch of the color selected
41 - Docs (prep to add to Read the Docs)
42 - Tests
43
44 .. _`jQuery ColorPicker`: https://github.com/Belelros/jQuery-ColorPicker