If you are ready to deploy a Django site, start by creating a database…



Make sure the Salt pillar is configured correctly for the site. You need to include the database password and a folder containing the database settings.

For details, see Site - Configuration

For MySQL:

ssh the.server.ip.address
sudo -i
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';

For details, see:

To create a database for a site:

cd fabric
fab create-db

# if your would like to use a Postgres table space name
fab create-db:cbs

To create a workflow database for a site:

fab create-db-workflow

You are now ready to Deploy your site…


To drop a database, you will need to append the current date and time e.g:

fab drop_db:02/02/2015-16:54

To drop a database role:

fab drop_db_role


This command should fail if the role is in use.