Commit 11d240ed authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

add script to automate creating the admin user

parent ae04dfc7
# this script is based on @jmchilton's (
# it creates the admin user and sets an API key for it.
from scripts.db_shell import *
admin_user = User("")
admin_key = APIKeys()
admin_key.user_id =
print 'Setting admin id as %s' %
admin_key.key = '111111111111111111111'
sa_session.add( admin_key )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment