0

What is the Django "runonce-per-db" flag?

I see it mentioned in this thread, but cannot find any documentation for it.

4

1 回答 1

2

I don't think it's django code. runonce doesn't appear in the source.

To implement this we attach to the post_syncdb, and set a runonce-per-db flag (since it seems to be the only available signal)

He's just saying he needs to set a flag (which he's referring to as runonce-per-db) because post_syncdb is emitted for every app and presumably his code needs to fire only once.

于 2011-10-25T20:23:47.503 回答