def setup_app(command, conf, vars):
 load_environment(conf.global_conf, conf.local_conf)
 from ckan import model
 log.debug('Creating tables')
 model.repo.create_db()
 log.info('Creating tables: SUCCESS')

def setup_app ( command , conf , vars ) : load_environment ( conf . global_conf , conf . local_conf ) from ckan import model log . debug ( 'Creating tables' ) model . repo . create_db ( ) log . info ( 'Creating tables: SUCCESS' )
place any commands to setup ckan here .