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
postgres
executable. Defaults topostgres
.
-
django.conf.settings.
DBDEV_POSTGRES_PG_CTL_EXECUTABLE
¶ Path to the
pg_ctl
executable. Defaults topg_ctl
.
-
django.conf.settings.
DBDEV_POSTGRES_PSQL_EXECUTABLE
¶ Path to the
psql
executable. Defaults topsql
.
-
django.conf.settings.
DBDEV_POSTGRES_CREATEDB_EXECUTABLE
¶ Path to the
createdb
executable. Defaults tocreatedb
.
-
django.conf.settings.
DBDEV_POSTGRES_PG_DUMP_EXECUTABLE
¶ Path to the
pg_dump
executable. Defaults topg_dump
.
MySQL backend settings¶
-
django.conf.settings.
DBDEV_MYSQL_INSTALL_DB_EXECUTABLE
¶ Path to the
mysql_install_db
executable. Defaults tomysql_install_db
.
-
django.conf.settings.
DBDEV_MYSQLD_EXECUTABLE
¶ Path to the
mysqld_safe
executable. Defaults tomysqld_safe
.
-
django.conf.settings.
DBDEV_MYSQLADMIN_EXECUTABLE
¶ Path to the
mysqladmin
executable. Defaults tomysqladmin
.
-
django.conf.settings.
DBDEV_MYSQL_EXECUTABLE
¶ Path to the
mysql
executable. Defaults tomysql
.
-
django.conf.settings.
DBDEV_MYSQLDUMP_EXECUTABLE
¶ Path to the
mysqldump
executable. 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
.