summaryrefslogtreecommitdiffstats
path: root/stackexchange
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-07 23:19:13 -0500
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-03-07 23:19:13 -0500
commit5e3078ef2f2b430a8b4420752079f62508443200 (patch)
treeafb350edbfbd2818e5ac80b40180c99158d358fc /stackexchange
parent79b4c413cf84a3a3688065e4ddf4ba66c3945e9b (diff)
downloadaskbot-5e3078ef2f2b430a8b4420752079f62508443200.tar.gz
askbot-5e3078ef2f2b430a8b4420752079f62508443200.tar.bz2
askbot-5e3078ef2f2b430a8b4420752079f62508443200.zip
edited README
Diffstat (limited to 'stackexchange')
-rw-r--r--stackexchange/README29
1 files changed, 15 insertions, 14 deletions
diff --git a/stackexchange/README b/stackexchange/README
index c122570f..3bd95cc1 100644
--- a/stackexchange/README
+++ b/stackexchange/README
@@ -2,28 +2,29 @@ this app's function will be to:
* install it's own tables <--- done
* read SE xml dump into DjangoDB <--- done
-* populate osqa database
+* populate osqa database <-- user accounts and Q&A revisions loaded
* remove SE tables
-So far models are automatically created via:
+Current process to load SE data into OSQA:
-1) add 'stackexchange' to the list of installed apps
-2) run:
+1) unzip SE dump into dump_dir (any directory name)
+ you may want to make sure that your dump directory in .gitignore file
+ so that you don't publish it by mistake
- #in-place removal of xml namspace prefix to make parsing easier
- perl -pi -w -e 's/xs://g' $SE_DUMP_PATH/xsd/*.xsd
+2) add 'stackexchange' to the list of installed apps
+3) (optional - create models.py for SE, which is included anyway) run:
+
+ #a) run in-place removal of xml namspace prefix to make parsing easier
+ perl -pi -w -e 's/xs://g' $SE_DUMP_PATH/xsd/*.xsd
cd stackexchange
python parse_models.py $SE_DUMP_PATH/xsd/*.xsd > models.py
- cd ..
- python manage.py syncdb
-3) unzip SE dump into dump_dir (any directory name)
- you may want to make sure that your dump directory in .gitignore file
- so that you don't publish it by mistake
-
-3) run:
+4) Install stackexchange models
+ python manage.py syncdb
+5) run:
python manage.py load_stackexchange dump_dir
- does not yet populate final data
+ if anything doesn't go right - run 'python manage.py flush' and repeat
+ the above command