Your SlideShare is downloading. ×
0
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Django on Jython, PyCon 2009
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Django on Jython, PyCon 2009

1,693

Published on

Django on Jython presentation, featuring a prototype for a Django IDE, on top of Eclipse/PyDev

Django on Jython presentation, featuring a prototype for a Django IDE, on top of Eclipse/PyDev

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,693
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
45
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • http://www.flickr.com/photos/purpleslog/231478071
  • http://www.flickr.com/photos/21054697@N03/2053923652
  • http://www.flickr.com/photos/21054697@N03/2053923652
  • http://www.flickr.com/photos/vicintosh87/2618725412/
  • http://www.flickr.com/photos/purpleslog/231478071
  • http://www.flickr.com/photos/purpleslog/231478071
  • http://www.flickr.com/photos/dipster1/1403240351
  • Transcript

    • 1. Django on Jython <ul><li>Jim Baker </li></ul><ul><li>Leo Soto </li></ul>
    • 2. Jython Status
    • 3. Shipped 2.5 (beta3)
    • 4. Greatly improved “compatibility”
    • 5. setuptools
    • 6. virtualenv
    • 7. nose
    • 8. etree
    • 9. &nbsp;
    • 10. &nbsp;
    • 11. web 2 py
    • 12. &nbsp;
    • 13. &nbsp;
    • 14. Django + Jython: Why?
    • 15. Installing this Django app...
    • 16. ...in an Enterprise Infrastructure
    • 17. (I mean, this kind of enterprise infrastructure)
    • 18. Didn&apos;t work quite well
    • 19. Guess how much time it took
    • 20. We like Python They need Java
    • 21. Jython
    • 22. Avoiding Java Sneaking Python Is that it?
    • 23. No, it is more than that! (if you want)
    • 24. Examples...
    • 25. <ul><li>Python/Django </li></ul><ul><li>Install Django </li></ul><ul><li>Install 3rd party deps </li></ul><ul><li>Install app(s) </li></ul><ul><li>Tweak settings.py </li></ul><ul><li>Configure web server </li></ul><ul><li>Make sure everything is consistent </li></ul>Steps to Deploy a Web Application
    • 26. <ul><li>Java </li></ul><ul><li>Copy/upload WAR package </li></ul>Steps to Deploy a Web Application
    • 27. Java libs can eat complex Excel data!
    • 28. We can reuse what&apos;s good on the Java ecosystem!
    • 29. Django + Jython: Architecture
    • 30. The cool side of Java <ul><li>System Programming </li></ul><ul><li>Concurrency Model </li></ul><ul><li>Memory Model </li></ul>
    • 31. <ul><ul><li>$ jython2.5 </li></ul></ul><ul><ul><li>... </li></ul></ul><ul><ul><li>&gt;&gt;&gt; from __future__ import GIL </li></ul></ul>
    • 32. <ul><ul><li>$ jython2.5 </li></ul></ul><ul><ul><li>... </li></ul></ul><ul><ul><li>&gt;&gt;&gt; from __future__ import GIL </li></ul></ul><ul><ul><li>Traceback (most recent call last): (no code object) at line 0 File &amp;quot;&lt;stdin&gt;&amp;quot;, line 1 </li></ul></ul><ul><ul><li>SyntaxError: </li></ul></ul><ul><ul><li>Never going to happen! </li></ul></ul>
    • 33. On the other hand...
    • 34. J2EE was a big, horrible mistake
    • 35. The right tool for the right job!
    • 36. Java : Performance, Heavy lifting, Pre-existing infrastructure
    • 37. Jython : Everything else :)
    • 38. Deployment
    • 39. App Servers: Already there, lots of features
    • 40. Let&apos;s use their force! http://flickr.com/photos/tomloudon/322172413/sizes/l/
    • 41. Deployment Options <ul><li>Java app servers - show some horizontal scaling; also management - sys admins know how to do this! </li></ul><ul><li>Hardened - it runs on the JVM </li></ul>
    • 42. vs Google App Engine <ul><li>It’s Django 1.0 </li></ul><ul><li>We have Unicode, internationalization, ORM, unit tests, admin, shell, everything! </li></ul><ul><li>And we can use Java analogues: </li></ul><ul><ul><li>BigTable &lt;=&gt; HBase, Hypertable </li></ul></ul><ul><ul><li>MapReduce &lt;=&gt; Hadoop </li></ul></ul>Add pictures for app engine, HBase, Hadoop
    • 43. WAR! <ul><li>Web ARchive format </li></ul><ul><ul><li>Standard deployment for Java app servers </li></ul></ul><ul><ul><li>Just a bunch of files with a standard directory layout and manifest </li></ul></ul>
    • 44. <ul><li>$ jython manage.py war </li></ul><ul><li>--include-java-libs=jdbcdriver.jar </li></ul>
    • 45. 100% self-contained!
    • 46. WAR format for DoJ <ul><li>|-- WEB-INF </li></ul><ul><li>| |-- lib </li></ul><ul><li>| `-- lib-python </li></ul><ul><li>| |-- Lib </li></ul><ul><li>| |-- django </li></ul><ul><li>| |-- doj </li></ul><ul><li>| `-- mysite </li></ul><ul><li>`-- media </li></ul>super simple bundling!
    • 47. IDE Integration
    • 48. Again, why?
    • 49. Quick Start!
    • 50. Let People Explore
    • 51. Re-factoring
    • 52. One place to rule them all
    • 53. Let see how that&apos;d be with Django...
    • 54. Demo
    • 55. Summary
    • 56. Questions?
    • 57. Thanks! Jim&apos;s Blog: http://www.zyasoft.com/pythoneering/ Leo&apos;s Blog: http://blog.leosoto.com Twitter: jimbaker, leosoto
    • 58. <ul><li>http://www.flickr.com/photos/purpleslog/231478071 </li></ul><ul><li>http://www.flickr.com/photos/21054697@N03/2053923652 </li></ul><ul><li>http://www.flickr.com/photos/vicintosh87/2618725412 </li></ul><ul><li>http://www.flickr.com/photos/dipster1/1403240351 </li></ul>Images used under CC license
    • 59. &nbsp;

    ×