def import_command(self):
        command = 'psql -d {databasename} -f - --username={adminuser}'
        if self.database_host:
            command = '%s --host={host}' % command
        if self.database_port:
            command = '%s --port={port}' % command
        if settings.POSTGRESQL_RESTORE_SINGLE_TRANSACTION:
            command += ' --single-transaction '
        return '%s <' % command
Constructs the PostgreSQL db import command
dataset/ETHPy150Open django-dbbackup/django-dbbackup/dbbackup/dbcommands.py/PostgreSQLSettings.import_command