Django on Jython, PyCon 2009

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Notes on slide 1

    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

    2 Favorites & 1 Group

    Django on Jython, PyCon 2009 - Presentation Transcript

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

    + leo.sotoleo.soto, 5 months ago

    custom

    813 views, 2 favs, 0 embeds more stats

    Django on Jython presentation, featuring a prototyp more

    More info about this document

    CC Attribution License

    Go to text version

    • Total Views 813
      • 813 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 10
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events