Installation

Installation using pip:

pip install django-hordak

Add to installed apps:

INSTALLED_APPS = [
    ...
    'mptt',
    'hordak',
]

Note

Hordak uses django-mptt to provide the account tree structure. It must therefore be listed in INSTALLED_APPS as shown above.

Run the migrations:

./manage.py migrate

Using the interface

Hordak comes with a basic interface. The intention is that you will either build on it, or use a another interface. To get started with the example interface you can add the following to your urls.py:

urlpatterns = [
    ...
    url(r'^', include('hordak.urls', namespace='hordak'))
]

You should then be able to run the development server (assuming you ran the migrations as detailed above):

./manage.py runserver

And now navigate to http://127.0.0.1:8000/.

Using the models

Hordak’s primary purpose is to provide a set of robust models with which you can model the core of a double entry accounting system. Having completed the above setup you should be able to import these models and put them to use.

from hordak.models import Account, Transaction, ...

You can find further details in the API documentation. You may also find the accounting for developers section useful.