Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,17 @@ Usage

As an example lets create a tool allowing you to delete all objects. Yes this is a bit convoluted but it's a good toy example for illustration purposes. Have a look at `django-export <http://pypi.python.org/pypi/django-export>`_ and `django-order <http://pypi.python.org/pypi/django-order>`_ for examples of real world tools leveraging ``django-object-tools``.

Firstly create a Django app folder structure as per usual, with the root directory named ``delete``, including a file called ``tools.py``. It should look as follows::

delete/
__init__.py
tools.py
Firstly create a NEW Django app folder structure.

python manage.py startapp delete_app


Create a directory named ``delete``, including a file called ``tools.py`` inside the ``delete_app``. The directory structure looks like this:

delete_app/
delete/
__init__.py
tools.py

Edit ``tools.py`` to look like this:

Expand Down