def setup_postgres_hstore(sender, **kwargs):
    """
    Always create PostgreSQL HSTORE extension if it doesn't already exist
    on the database before syncing the database.
    Requires PostgreSQL 9.1 or newer.
    """
cursor = connection.cursor()
cursor.execute('CREATE EXTENSION IF NOT EXISTS hstore')
Как настроить django-hstore с существующим приложением, управляемым югом?