That's true: Django works on Jython without any special patch!
For anyone interesting in trying it out, I've written the steps on the Jython wiki.
For Jython, I think this is great. Not only showing that it is alive and well, but also to expose how much progress has been done in almost every front. Better unicode support, an improved parser, setuptools compatibility, performance improvements, experimental system-restarting support, datetime and decimal support on zxJDBC, are some of the features that enables this milestone. Looking back, it is a lot of impressive work of all Jython developers.
For Django this is great too! I think the codebase got improved by some of the changes that were needed to enable Jython support, and this sort of confirms Django as the web framework that every Python platform want to get running (Jython, PyPy, IronPython... not to mention AppEngine). I'm also amazed at the response we got from the Django developers. They managed to include the needed changes in the middle of the rush for the 1.0 release. Amazing.
For me... well, I'm very, very happy. It has been a lot of fun so far, and there will be more of it. Did I mention that I will be speaking at DjangoCon on a few weeks? ;-)
Moreover, there are 4 days left for the GSoC coding period, and I have another objective to meet. Stay tuned...
Update: And here is the other goal completed: Deploying Django projects on Java App Servers.
Simon Wittber: Python + Wiimote + 30 tonnes of Steel
47 minutes ago


12 comments:
Bravo, Leo! :-)
congratulation leo. :)
Are there any speed improvements with Django on Jython?
@carlitos and victor: thanks!
@rob: We have not measured django specific performance under Jython yet. However, we have an eye on performance for the upcoming 2.5 release. If you are interested, Nicholas Riley hosts cool plots of Jython performance on many microbenchmarks over the time.
That's really cool. I love Django+Python and also the Java framework capabilities.
Nice Job! I'll have to try this one out soon!
Thanks Leo for your work.
I followed your instructions at Jython Wiki but I get an error when I run "jython25 manage.py syncdb":
File "/home/david/jython-dev/dist/Lib/site-packages/django/db/__init__.py", line 30, in module
raise ImproperlyConfigured, "%r isn't an available database backend. Available options are: %s\nError was: %s" % \
django.core.exceptions.ImproperlyConfigured: 'doj.backends.zxjdbc.postgresql' isn't an available database backend. Available options are: 'creation$py.class', 'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3', 'util$py.class'
@david:
Can you check that there is a "doj" directory inside /home/david/jython-dev/dist/Lib/site-packages/.
Also, you may want to follow up this on the jython-users mailing list, so other people experimenting the same problem can benefit from the answers.
Thanks Leo,
there was an doj directory inside .../Lib/site-packages/ but it was empty.
I cd to django-jython and do a 'svn up -r 9; jython25 setup.py install.py'. For now, work for me. It connect perfertly to postgresql.
@david:
Oops, looks like I screwed up the setup.py file.
Thanks for the info -- the issue is now fixed on django-jython trunk.
Dear Leo,
I’ve also tried to install Django on top of jython2.5b1 using your recommendations from Jython Wiki.
Unfortunately, the step
copying django\bin\compile-messages.py -> build\lib\django\bin
failed with
…
File "C:\jython2.5b1\Lib\os.py", line 574, in _to_timeval
from org.jruby.ext.posix.util import Platform
ImportError: No module named jruby
(Python25 does everything correctly)
I will greatly appreciate any advice.
Thanks in advance,
Boris.
@Boris:
Seems like a problem that crept in on the beta1 release of jython2.5.
You can follow this bug to know when it is resolved
In the meantime, you can use beta0, or ask on the jython-users mailing list if there is another workaround I'm not aware of.
Post a Comment