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.

パラメータ:
  • app_configs (list) -- The application configurations being checked.

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

戻り値:

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

戻り値の型:

list[Warning]