Demo Backends

django-demo requires a backend for database creation and deletion. There are built in backends for Sqlite3, MySQL and PostgreSQL, however using the DEMO_BACKEND setting, you can specify a custom module to be used for your database.

The module you specify as DEMO_BACKEND must provide two functions:


Drops (deletes) the database with the given name. This function should react properly to the DEMO_DROP_DATABASE setting.


Creates the database with the given name if it doesn’t exist already. If DEMO_DROP_DATABASE is False the database might already exist.

Project Versions

Previous topic


Next topic

How it works

This Page