diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-03-08 20:21:46 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-03-08 20:21:46 -0500 |
commit | 1113085c74c7fec5012993a567c144fb84be6913 (patch) | |
tree | c6cf6e061d220d2595fd2a36508f2f41ea614518 /stackexchange | |
parent | 2f02980a8faf24ba091a52cd00c52a332075c205 (diff) | |
download | askbot-1113085c74c7fec5012993a567c144fb84be6913.tar.gz askbot-1113085c74c7fec5012993a567c144fb84be6913.tar.bz2 askbot-1113085c74c7fec5012993a567c144fb84be6913.zip |
edited README
Diffstat (limited to 'stackexchange')
-rw-r--r-- | stackexchange/README | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/stackexchange/README b/stackexchange/README index 3bd95cc1..b2a39e1c 100644 --- a/stackexchange/README +++ b/stackexchange/README @@ -7,24 +7,32 @@ this app's function will be to: Current process to load SE data into OSQA: -1) unzip SE dump into dump_dir (any directory name) +1) backup database + +2) 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 -2) add 'stackexchange' to the list of installed apps +3) add 'stackexchange' to the list of installed apps (probably aready in settings.py) -3) (optional - create models.py for SE, which is included anyway) run: +4) (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 -4) Install stackexchange models +5) Install stackexchange models (as well as any other missing models) python manage.py syncdb -5) run: +6) make sure that osqa badges are installed + if not, run (example for mysql): + + mysql -u user -p dbname < sql_scripts/badges.sql + +7) load SE data: + python manage.py load_stackexchange dump_dir if anything doesn't go right - run 'python manage.py flush' and repeat - the above command + steps 6 and 7 |