blob: f842e89129f438cd7b966456a53bd21e3b7ba35b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
this app's function will be to:
* install it's own tables <--- done
* read SE xml dump into DjangoDB <--- done
* populate osqa database
* remove SE tables
So far models are automatically created via:
1) add 'stackexchange' to the list of installed apps
2) 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) run:
python manage.py load_stackexchange
does not yet populate final data
|