Package spammcan :: Module bootstrap
[hide private]

Module bootstrap

source code

Functions for bootstrapping the database used by the commands module.

Functions [hide private]
 
bootstrap_model(clean=False, create_user=False)
Create all database tables and fill them with default data.
source code
 
create_default_user(user_name)
Create a default user.
source code
 
create_formats()
Populate the 'format' table.
source code
 
create_styles()
Populate the 'style' table.
source code
 
create_tables(drop_all=False)
Create all tables defined in the model in the database.
source code
Function Details [hide private]

create_tables(drop_all=False)

source code 

Create all tables defined in the model in the database.

Optionally drop existing tables before creating them.