[Dev-flock] Fwd: dumb question

Lucy Mendel lucy at thoughtandmemory.org
Sat Dec 1 17:44:00 EST 2007


Mike,

I edited db/fixtures/santa2.json by adding a behavior to node 34:

  {
    "pk": 12,
    "model": "db.behavior",
    "fields": {
      "node": 34,
      "description": "",
      "url": "",
      "label": "Beeeeehavior",
      "state": 1,
      "dimension": 1
    }
  },

then I did
./manage.py loaddata db/fixtures/santa2.json

node 34 now has 4 behaviors: the original one, beeeeeehavior, and both of
those again. when i loaddata again the node doesn't get 8 behaviors. so...
maybe ...

I reset the database and then did quickstart.

sadly now I get an error:

at Main/node/34 that list-index is out of range.

doh.


On Dec 1, 2007 2:29 PM, Mike Eggar <eggar at hotmail.com> wrote:

>  I get an error, "node does not exist", even after loaddata.py, but the
> user page works.  I just need to add one behavior and one argument so I can
> test a node with more than one behavior.  can you add data from the python
> command line?
>
> Mike
>
> > Date: Sat, 1 Dec 2007 10:43:18 -0500
> > From: lucy at thoughtandmemory.org
> > To: dev-flock at mit.edu
> > Subject: [Dev-flock] Fwd: dumb question
>
> >
> > ---------- Forwarded message ----------
> > From: Lucy Mendel < lucy at thoughtandmemory.org>
> > Date: Dec 1, 2007 10:42 AM
> > Subject: Re: [Dev-flock] dumb question
> > To: Mike Eggar <eggar at hotmail.com>
> >
> >
> > Mike,
> >
> > Does nothing happen or do you get an error?
> >
> > In the past I've editted santa2.json directly and then done
> > ./manage.py loaddata db/fixtures/santa2.json
> >
> > output:
> > Loading 'db/fixtures/santa2' fixtures...
> > Installing json fixture 'db/fixtures/santa2' from absolute path.
> > Installed 530 object(s) from 1 fixture(s)
> >
> > l.
> >
> > On 11/30/07, Mike Eggar <eggar at hotmail.com> wrote:
> > >
> > > how can I add some data to the database, tried editing santa2.jsonthen
> > > build_fixtures.rb and quickstart.py, no dice. probably a typo or am I
> > > missing something?
> > >
> > > Mike
> > >
> > > ________________________________
> > > Share life as it happens with the new Windows Live. Share now!
> > > _______________________________________________
> > > Dev-flock mailing list
> > > Dev-flock at mit.edu
> > > http://mailman.mit.edu/mailman/listinfo/dev-flock
> > >
> > >
> > _______________________________________________
> > Dev-flock mailing list
> > Dev-flock at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/dev-flock
>
> ------------------------------
> Your smile counts. The more smiles you share, the more we donate. Join in!<http://www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline>
>
> _______________________________________________
> Dev-flock mailing list
> Dev-flock at mit.edu
> http://mailman.mit.edu/mailman/listinfo/dev-flock
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/dev-flock/attachments/20071201/474b00ec/attachment.htm


More information about the Dev-flock mailing list