Installation

In order to install TransManager you need to do it via pip install transmanager.

Then you’ve to append transmanager and django_tables2 to INSTALLED_APPS in your settings.

INSTALLED_APPS = (
    ...
    'transmanager',
    'django_tables2',
    'haystack',
)

Execute the migrate command in order to create the models.

python manage.py migrate transmanager

If you install TransManager in an app with already existing data, you can use the following command in order to generate the translations tasks.

python manage.py generate_tasks

As Transmanager comes with a translations suggestion system enable by default, we have to generate the index of the suggestions, which relies on a haystack search index. First we need to add the HAYSTACK_CONNECTIONS to the main app settings:

HAYSTACK_CONNECTIONS = {
    'default': {
        'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
        'PATH': os.path.join(os.path.dirname(__file__), 'whoosh_index'),
    },
}
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'

It’s recommended to activate the realtime signal processos in order to have the search index updated. You can also cron the command python manage.py update_index. Take a look to the Django-haystack documentation for further information.