diff options
Diffstat (limited to 'old/published/Webmonkey/Monkey_Bites/2007/08.20.07/Mon/djangoiphone.txt')
-rw-r--r-- | old/published/Webmonkey/Monkey_Bites/2007/08.20.07/Mon/djangoiphone.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/old/published/Webmonkey/Monkey_Bites/2007/08.20.07/Mon/djangoiphone.txt b/old/published/Webmonkey/Monkey_Bites/2007/08.20.07/Mon/djangoiphone.txt new file mode 100644 index 0000000..e40fc15 --- /dev/null +++ b/old/published/Webmonkey/Monkey_Bites/2007/08.20.07/Mon/djangoiphone.txt @@ -0,0 +1,24 @@ +Back when the hackers first broke into the IPhone and managed to get [Apache and Python installed][6], we knew it was only a matter of time before someone installed one of our favorite web frameworks -- Django. And yes it has been done, with [Flickr photos to prove it][1]. + +Jacob Kaplen Moss, Python guru and one of the [developers behind Django][5], got the framework installed and used Django's inspectdb to [load the iPhone's call log][4] into the Django admin application. Inspectdb is a handy Django tool that basically reverse engineers an existing database structure and then creates a Django application using that information. + +And to prove you don't need to be a Django developer to pull this off, it's worth noting that another Django user, Jay Baird, also has some [photos of Django running on an iPhone][2]. + +For the moment you'll have to content yourself with the Flickr images as it doesn't seem that anyone has posted a tutorial on the process (if you know of one, stick it in the comments and I'll update this post). + +Here's a few hints though, based on my own digging around: First off you're going to need Jailbreak and then install Apache and Python (presumably mod_python as well which I haven't been able to find anyone who's done that... perhaps they're running Django under WCGI). + +Next you'll need to install Django and point your browser to localhost to make sure it worked. Then if you want to pull out the call data you'll need to find the iPhone's CoreData files, which, as I understand it, are essentially SQLite databases. Once you have those, run Django's inspectdb function and you've got a web interface capable of viewing and editing anything on the iPhone. + +While Jacob's call data application isn't particularly useful, the fact that you can get Django up and running on an IPhone certainly is -- imagine locally hosted iPhone webapps without the speed drag of the EDGE network. That's an iPhone webapp we can finally get behind. + +I imagine similar efforts are underway in the Rails world and other web frameworks, be sure to let us know in the comments. + +[via the [Django Roundup][3]] + +[3]: http://www.djangoproject.com/weblog/2007/aug/19/djangoroundup/ +[2]: http://www.flickr.com/photos/skatterbean/1173984622/ +[1]: http://www.flickr.com/photos/jacobian/1160698795/in/photostream/ +[4]: http://www.flickr.com/photos/jacobian/1161717658/in/photostream/ +[5]: http://www.djangoproject.com/documentation/faq/#who-s-behind-this +[6]: http://blog.wired.com/monkeybites/2007/07/third-party-app.html
\ No newline at end of file |