beat.web.utils.management.commands.update_installed_databases module

Examples

To install advanced databases:

$ manage.py update_installed_databases -v1

Note: If you need to specify your own path to the directories containing the databases, you could just create a simple JSON file as follows:

{
  "atnt/1": "/remote/databases/atnt",
  "banca/2": "/remote/databases/banca"
}

Then just use the script with the option --database-root-file:

$ manage.py update_installed_databases -v1 --database-root-file=<file.json>

By default, the scripts only installs versions that are not already available. In order to do a full update of the database use --replace:

$ manage.py update_installed_databases -v1 --replace

It’s also possible to do a dry-run to just determine what would be installed using the option --dry-run:

$ manage.py update_installed_databases -v1 --dry-run

By default, paths to the root of all databases are set to match the Idiap Research Institute filesystem organisation.

class beat.web.utils.management.commands.update_installed_databases.Command[source]

Bases: django.core.management.base.BaseCommand

help = 'Install the various database up to their latest versions'
add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(*ignored, **arguments)[source]

The actual logic of the command. Subclasses must implement this method.