X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/7913f8d5b2d58dbd8db4503378eddb00578e90a7..f4a6882d2cdb1baeb2c4662b1c305b99d7596cae:/floof/websetup.py?ds=sidebyside diff --git a/floof/websetup.py b/floof/websetup.py index 705c342..fa97149 100644 --- a/floof/websetup.py +++ b/floof/websetup.py @@ -1,9 +1,10 @@ """Setup the floof application""" +import elixir import logging from floof.config.environment import load_environment from floof.model import meta -import elixir +from floof.model.users import IdentityURL, User log = logging.getLogger(__name__) @@ -13,3 +14,12 @@ def setup_app(command, conf, vars): # Create the tables if they don't already exist elixir.create_all(bind=meta.engine, checkfirst=False) + + ### Load some basic data + + # Users + identity_url = IdentityURL(url=u'http://eevee.livejournal.com/') + user = User(name=u'Eevee') + user.identity_urls.append(identity_url) + + elixir.session.commit()