File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ Haystack 1.X
51
51
52
52
1. Add ``'celery_haystack' `` to the ``INSTALLED_APPS `` setting
53
53
54
- ::
54
+ .. code :: python
55
55
56
56
INSTALLED_APPS = [
57
57
# ..
@@ -61,7 +61,7 @@ Haystack 1.X
61
61
2. Alter all of your ``SearchIndex `` subclasses to inherit from
62
62
``celery_haystack.indexes.CelerySearchIndex ``
63
63
64
- ::
64
+ .. code :: python
65
65
66
66
from haystack import site, indexes
67
67
from celery_haystack.indexes import CelerySearchIndex
@@ -79,7 +79,7 @@ Haystack 2.X
79
79
80
80
1. Add ``'celery_haystack' `` to the ``INSTALLED_APPS `` setting
81
81
82
- ::
82
+ .. code :: python
83
83
84
84
INSTALLED_APPS = [
85
85
# ..
@@ -88,15 +88,15 @@ Haystack 2.X
88
88
89
89
2. Enable the celery-haystack signal processor in the settings
90
90
91
- ::
91
+ .. code :: python
92
92
93
93
HAYSTACK_SIGNAL_PROCESSOR = ' celery_haystack.signals.CelerySignalProcessor'
94
94
95
95
3. Alter all of your ``SearchIndex `` subclasses to inherit from
96
96
``celery_haystack.indexes.CelerySearchIndex `` and
97
97
``haystack.indexes.Indexable ``
98
98
99
- ::
99
+ .. code :: python
100
100
101
101
from haystack import indexes
102
102
from celery_haystack.indexes import CelerySearchIndex
You can’t perform that action at this time.
0 commit comments