This is a very old thread. These days you'd be better of looking at using Web Services to access Moodle's data from an external app.
General developer forum
Moodle and Django
This discussion has been locked so you can no longer reply to it.