Settings¶
django_dbdev is configured using Django settings. The following settings is available.
Common for all backends¶
-
django.conf.settings.DBDEV_DATADIR¶ The directory where we store the data for django_dbdev. Each backend creates its own subdirectory where they store settings, database-data etc. We also store backups in subdirectories of this directory.
Defaults to
dbdev_tempdata.
Posgres backend settings¶
-
django.conf.settings.DBDEV_POSTGRES_EXECUTABLE¶ Path to the
postgresexecutable. Defaults topostgres.
-
django.conf.settings.DBDEV_POSTGRES_PG_CTL_EXECUTABLE¶ Path to the
pg_ctlexecutable. Defaults topg_ctl.
-
django.conf.settings.DBDEV_POSTGRES_PSQL_EXECUTABLE¶ Path to the
psqlexecutable. Defaults topsql.
-
django.conf.settings.DBDEV_POSTGRES_CREATEDB_EXECUTABLE¶ Path to the
createdbexecutable. Defaults tocreatedb.
-
django.conf.settings.DBDEV_POSTGRES_PG_DUMP_EXECUTABLE¶ Path to the
pg_dumpexecutable. Defaults topg_dump.
MySQL backend settings¶
-
django.conf.settings.DBDEV_MYSQL_INSTALL_DB_EXECUTABLE¶ Path to the
mysql_install_dbexecutable. Defaults tomysql_install_db.
-
django.conf.settings.DBDEV_MYSQLD_EXECUTABLE¶ Path to the
mysqld_safeexecutable. Defaults tomysqld_safe.
-
django.conf.settings.DBDEV_MYSQLADMIN_EXECUTABLE¶ Path to the
mysqladminexecutable. Defaults tomysqladmin.
-
django.conf.settings.DBDEV_MYSQL_EXECUTABLE¶ Path to the
mysqlexecutable. Defaults tomysql.
-
django.conf.settings.DBDEV_MYSQLDUMP_EXECUTABLE¶ Path to the
mysqldumpexecutable. Defaults tomysqldump.
-
django.conf.settings.DBDEV_MYSQL_BASEDIR¶ The path to the mysql basedir (where mysql default data is installed). You may have to set this if your MySQL/MariaDB is not configured correctly.
Can also be set as an environment variable, which is probably a better choice for projects with more than one developer.
Defaults to
None.