Skip to content

Commit 6109f35

Browse files
committed
Merge pull request django-haystack#42 from frewsxcv/patch-1
Enable syntax highlighting in README
2 parents 6db1c19 + e6b7a4f commit 6109f35

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Haystack 1.X
5151

5252
1. Add ``'celery_haystack'`` to the ``INSTALLED_APPS`` setting
5353

54-
::
54+
.. code:: python
5555
5656
INSTALLED_APPS = [
5757
# ..
@@ -61,7 +61,7 @@ Haystack 1.X
6161
2. Alter all of your ``SearchIndex`` subclasses to inherit from
6262
``celery_haystack.indexes.CelerySearchIndex``
6363

64-
::
64+
.. code:: python
6565
6666
from haystack import site, indexes
6767
from celery_haystack.indexes import CelerySearchIndex
@@ -79,7 +79,7 @@ Haystack 2.X
7979

8080
1. Add ``'celery_haystack'`` to the ``INSTALLED_APPS`` setting
8181

82-
::
82+
.. code:: python
8383
8484
INSTALLED_APPS = [
8585
# ..
@@ -88,15 +88,15 @@ Haystack 2.X
8888
8989
2. Enable the celery-haystack signal processor in the settings
9090

91-
::
91+
.. code:: python
9292
9393
HAYSTACK_SIGNAL_PROCESSOR = 'celery_haystack.signals.CelerySignalProcessor'
9494
9595
3. Alter all of your ``SearchIndex`` subclasses to inherit from
9696
``celery_haystack.indexes.CelerySearchIndex`` and
9797
``haystack.indexes.Indexable``
9898

99-
::
99+
.. code:: python
100100
101101
from haystack import indexes
102102
from celery_haystack.indexes import CelerySearchIndex

0 commit comments

Comments
 (0)