Exemplo n.º 1
0
def install(db_name, root_login="******", root_password=None, source_sql=None,
		admin_password = '******', verbose=True, force=False, site_config=None, reinstall=False):
	print db_name, source_sql
	from webnotes.installer import install_db, install_app, make_site_dirs
	install_db(root_login=root_login, root_password=root_password, db_name=db_name, source_sql=source_sql,
		admin_password = admin_password, verbose=verbose, force=force, site_config=site_config, reinstall=reinstall)
	make_site_dirs()
	install_app("webnotes", verbose=verbose)
	webnotes.destroy()
Exemplo n.º 2
0
def install_app(app_name, verbose=False):
	from webnotes.installer import install_app
	webnotes.connect()
	install_app(app_name, verbose=verbose)
	webnotes.destroy()