Skip to content

Commit fb25327

Browse files
authored
Merge pull request #37 from bashu/patch-1
let there be colour
2 parents 9d22066 + 0fca264 commit fb25327

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ Installation
2424

2525
#. Call object tool's ``autodiscover`` method. This works in a similar fashion as Django's admin; discovering which tools to render in admin. You can do this in any module that is called during initialization but we recommend doing it in ``urls.py``, as illustrated in the next point.
2626

27-
#. Hook up URLConf. Do this by pointing a given URL at the ``tools.urls`` method. In this example, we register the default ``Tools`` instance ``object_tools.tools`` at the URL ``/object-tools/``::
27+
#. Hook up URLConf. Do this by pointing a given URL at the ``tools.urls`` method. In this example, we register the default ``Tools`` instance ``object_tools.tools`` at the URL ``/object-tools/``:
28+
29+
.. code-block:: python
2830
2931
# urls.py
3032
from django.conf.urls.defaults import *
31-
form django.conf.urls import url
33+
from django.conf.urls import url
3234
import object_tools
3335
3436
# you can skip this if you're using Django >= 1.7
@@ -55,7 +57,9 @@ Firstly create a Django app folder structure as per usual, with the root directo
5557
__init__.py
5658
tools.py
5759

58-
Edit ``tools.py`` to look like this::
60+
Edit ``tools.py`` to look like this:
61+
62+
.. code-block:: python
5963
6064
from django.contrib.admin.actions import delete_selected
6165
import object_tools

0 commit comments

Comments
 (0)