|
If I want to pre-populate the database with some questions, how would I go about doing it? Should I insert the question in the database directly? Or should I go through some Python API to do so? It seems like I have to create a dummy user account for the purpose above as well because anonymous user is not really supported by OSQA. Any idea would be much appreciated. Thanks. |
|
You can try the code snipets in this answer. That should give you a good start. Inserting directly in the database is not a very good option :) The code snippet for importing user works, but importing questions doesn't work.
(05 Aug '10, 01:47)
bbpan
|
