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 to postgres.

django.conf.settings.DBDEV_POSTGRES_PG_CTL_EXECUTABLE

Path to the pg_ctl executable. Defaults to pg_ctl.

django.conf.settings.DBDEV_POSTGRES_PSQL_EXECUTABLE

Path to the psql executable. Defaults to psql.

django.conf.settings.DBDEV_POSTGRES_CREATEDB_EXECUTABLE

Path to the createdb executable. Defaults to createdb.

django.conf.settings.DBDEV_POSTGRES_PG_DUMP_EXECUTABLE

Path to the pg_dump executable. Defaults to pg_dump.

MySQL backend settings

django.conf.settings.DBDEV_MYSQL_INSTALL_DB_EXECUTABLE

Path to the mysql_install_db executable. Defaults to mysql_install_db.

django.conf.settings.DBDEV_MYSQLD_EXECUTABLE

Path to the mysqld_safe executable. Defaults to mysqld_safe.

django.conf.settings.DBDEV_MYSQLADMIN_EXECUTABLE

Path to the mysqladmin executable. Defaults to mysqladmin.

django.conf.settings.DBDEV_MYSQL_EXECUTABLE

Path to the mysql executable. Defaults to mysql.

django.conf.settings.DBDEV_MYSQLDUMP_EXECUTABLE

Path to the mysqldump executable. Defaults to mysqldump.

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.