django_hstore_widget.checks

Module Contents

django_hstore_widget.checks.check_database_backend_is_postgres(app_configs, **kwargs)

System check that warns when the default DB backend is not PostgreSQL.

HStore requires the hstore extension, which is only available on PostgreSQL. This check runs during manage.py check and manage.py migrate.

Parametri:
  • app_configs (list) – The application configurations being checked.

  • **kwargs – Additional keyword arguments from the check runner.

Ritorna:

A list containing a warning if the default database engine does not include postgres or postgis.

Tipo di ritorno:

list[Warning]