DjangoCon 2009: Django On Jython1. Django on Jython
Chris McAvoy & Matt Dorn
DjangoCon
September 10th, 2009
© 2009 PSC Group, LLC
7. “Rails Needs to Mature”
From my notes Dave Thomas’ Keynote at
Railsconf 2006
© 2009 PSC Group, LLC
8. “It turns out that writing the app is now the
easy part; managing the rest of the stack you
need for successful deployment can be nearly
impossible. In other words, we’re all ops
people now.” Jacob Kaplan Moss - Sept 4th 2009
© 2009 PSC Group, LLC
10. “Reign in the Cowboy”
Simon Willison - Tuesday
© 2009 PSC Group, LLC
16. Pieces
✴ Jython 2.5.0
✴ django-jython
‣ Provides support for Postgres & Sqlite3
‣ Build WAR files
‣ pip install django-jython
✴ zxJDBC
✴ Modjy
‣ Implements WSGI
© 2009 PSC Group, LLC
17. Dev Environment
✴ Install Jython
✴ Install setuptools & virtualenv
✴ Create virtualenv
✴ Install pip
✴ Install Django 1.1
✴ Install and patch django-jython
© 2009 PSC Group, LLC
18. Quirk Matrix
Django 1.0.x Django 1.1
Patch django-jython
Jython 2.5 Delete settings$py.class Postgres backend
✴ http://bit.ly/django-jython-fix
Patch django-jython
Jython 2.5rc1 Delete settings$py.class Postgres backend
✴ http://bit.ly/django-jython-fix
© 2009 PSC Group, LLC
19. ✴ http://bit.ly/django-jython-fix
© 2009 PSC Group, LLC
20. No C
Which means, no PIL, which means no models.ImageField
© 2009 PSC Group, LLC
21. Questions?
✴ http://www.psclistens.com
✴ Chris McAvoy
‣ cmcavoy@psclistens.com
‣ http://lonelylion.com
‣ @cmcavoy (mostly about kites and toddlers)
✴ Matt Dorn
‣ mdorn@psclistens.com
‣ http://mattdorn.com
‣ @mattdorn (but really, he’s a twitter-hater)
© 2009 PSC Group, LLC