blob: 3eb1fea93df2e17c0e391441d1a0161695eaa937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
this app's function will be to:
* install it's own tables <--- done
* read SE xml dump into DjangoDB
* populate osqa database
* remove SE tables
So far models are automatically created via:
1) add 'stackexchange' to the list of installed apps
2) type commands
#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
|