Leo Soto M. | 24 Aug 20:52

GSoC Final Report: Django on Jython

Looks like many people already know about my SoC results. But I wanted
to "officially" finish the SoC reports.

Django works on Jython without special patching. The tutorial can be
followed without any problems. And Django projects are extremely easy
to deploy on a Java Application Server, thanks to modjy. I'd even say
that deploying Django/Jython on Java appservers is easiest than
Django/CPython on apache/fastcgi/whatever.

On the test suite, I wasn't able to fix all of the failures. Django
developers did a great job on the testing front, growing from ~200
tests when I started the SoC to more than 400 now. That's a good
thing, as it made possible to spot some bugs on Jython, but it makes
the task of having fully passing test suite a bit more difficult. By
the end of the SoC coding period, we had 92% of Django tests passing.
A good number anyway, but should be improved.

There is also more work to do on the DB-backends front[1]. I think
that we may be able to easy the deployment of projects which mix
Django/Jython and Java code.

I'm not disappearing now. I want to continue coding and growing the
support of Django on Jython. That's why I've started the django-jython
project[2]. By now, it doesn't have a separate mailing list, since I
don't see why it should. I think we should keep the Django/Jython
usage discussions on the jython-users list.

Also, I'm now a Jython developer, and have a lot of pending tasks to
do on the Jython front which were motivated by my work on Django
integration. I won't have as much time as I had before, but I expect
(Continue reading)

Leo Soto M. | 24 Aug 20:59

Fwd: GSoC Final Report: Django on Jython


---------- Forwarded message ----------
From: Leo Soto M. <leo.soto@...>
Date: Sun, Aug 24, 2008 at 2:53 PM
Subject: GSoC Final Report: Django on Jython
To: JythonDevelopers <jython-dev@...>

Looks like many people already know about my SoC results. But I wanted
to "officially" finish the SoC reports.

Django works on Jython without special patching. The tutorial can be
followed without any problems. And Django projects are extremely easy
to deploy on a Java Application Server, thanks to modjy. I'd even say
that deploying Django/Jython on Java appservers is easiest than
Django/CPython on apache/fastcgi/whatever.

On the test suite, I wasn't able to fix all of the failures. Django
developers did a great job on the testing front, growing from ~200
tests when I started the SoC to more than 400 now. That's a good
thing, as it made possible to spot some bugs on Jython, but it makes
the task of having fully passing test suite a bit more difficult. By
the end of the SoC coding period, we had 92% of Django tests passing.
A good number anyway, but should be improved.

There is also more work to do on the DB-backends front[1]. I think
that we may be able to easy the deployment of projects which mix
Django/Jython and Java code.

I'm not disappearing now. I want to continue coding and growing the
support of Django on Jython. That's why I've started the django-jython
(Continue reading)

Tristan King | 25 Aug 01:18
Favicon

Re: GSoC Final Report: Django on Jython

Hi Leo,

Very good work Leo. The deployment instructions for my jython/django web app are now much simpler :).

I wonder where would you suggest filing django-jython bugs tho? I have a problem with the latest django svn revision where it wants to use SystemRandom (django/contrib/sessions/backends/base.py line 18), which returns a NotImplementedError.

Also, has anyone used the PyServlet class lately? my Django-Jetty servlet doesn't work with the developers-build jython.jar because it's missing classes from the objectweb package. Since my servlets is largely based off the PyServlet class i assume it will no longer work either. This is easily fixed by running jar-complete, and replacing jython.jar with jython-complete.jar. Maybe i need to look more into modjy instead.

Cheers
-Tristan

On Mon, Aug 25, 2008 at 4:53 AM, Leo Soto M. <leo.soto <at> gmail.com> wrote:
Looks like many people already know about my SoC results. But I wanted
to "officially" finish the SoC reports.

Django works on Jython without special patching. The tutorial can be
followed without any problems. And Django projects are extremely easy
to deploy on a Java Application Server, thanks to modjy. I'd even say
that deploying Django/Jython on Java appservers is easiest than
Django/CPython on apache/fastcgi/whatever.

On the test suite, I wasn't able to fix all of the failures. Django
developers did a great job on the testing front, growing from ~200
tests when I started the SoC to more than 400 now. That's a good
thing, as it made possible to spot some bugs on Jython, but it makes
the task of having fully passing test suite a bit more difficult. By
the end of the SoC coding period, we had 92% of Django tests passing.
A good number anyway, but should be improved.

There is also more work to do on the DB-backends front[1]. I think
that we may be able to easy the deployment of projects which mix
Django/Jython and Java code.

I'm not disappearing now. I want to continue coding and growing the
support of Django on Jython. That's why I've started the django-jython
project[2]. By now, it doesn't have a separate mailing list, since I
don't see why it should. I think we should keep the Django/Jython
usage discussions on the jython-users list.

Also, I'm now a Jython developer, and have a lot of pending tasks to
do on the Jython front which were motivated by my work on Django
integration. I won't have as much time as I had before, but I expect
to be hanging around here for a long time.

Thanks to everyone which helped me on this great experience!

[1] http://code.google.com/p/django-jython/wiki/DevelopingNewDatabaseBackends
[2] http://code.google.com/p/django-jython/
--
Leo Soto M.
http://blog.leosoto.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-dev mailing list
Jython-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev



--
Tristan King
Research Officer,
eResearch Centre
James Cook University, Townsville Qld 4811
Australia

Phone: +61747816902
E-mail: tristan.king <at> jcu.edu.au www: http://eresearch.jcu.edu.au
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jython-dev mailing list
Jython-dev <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev
Leo Soto M. | 25 Aug 03:10

Re: GSoC Final Report: Django on Jython

On Sun, Aug 24, 2008 at 7:18 PM, Tristan King <tristan.king <at> jcu.edu.au> wrote:
> Hi Leo,
> Very good work Leo. The deployment instructions for my jython/django web app
> are now much simpler :).
> I wonder where would you suggest filing django-jython bugs tho? I have a
> problem with the latest django svn revision where it wants to use
> SystemRandom (django/contrib/sessions/backends/base.py line 18), which
> returns a NotImplementedError.

I've seen that too. That's a Jython problem, so it should be reported
on the Jython tracker. Anyway, I know it is not always obvious to the
user where the problem is located, so I have no problem with they
being reported on django-jython.

> Also, has anyone used the PyServlet class lately? my Django-Jetty servlet
> doesn't work with the developers-build jython.jar because it's missing
> classes from the objectweb package.

Oh, that's a packaging issue that is going to be resolved soon. You
will see that there is a jarjar.jar file into dist/javalib/. That JAR
contains the missing stuff.

> Since my servlets is largely based off
> the PyServlet class i assume it will no longer work either. This is easily
> fixed by running jar-complete, and replacing jython.jar with
> jython-complete.jar.

Right, that works too.
--

-- 
Leo Soto M.
http://blog.leosoto.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane