Sunday, September 9, 2007

Django on Jython: syncdb works, going for the admin.



This week I had less time for my Django plus Jython hacking, but I managed to progress a bit:

  • jython manage.py syncdb works for models of the auth, sites and admin apps.

  • The admin index works. So do the object listing pages. Adding and editing fails, tought.

  • The debugging info page works. It's a good thing to have when you get one crash after the other :).




The hardest thing has been getting the test suite running. I haven't made much progress there.

I will make a proper report of code changes as soon as I can. I should fill some Jython bugs too.

3 comments:

Tristan said...

hi, i've been doing a few changes to django myself to get the dev server and the autoreloading feature to work, which i've done somewhat successfully. if you're interested in these changes i can link you to my changeset.

the only annoying thing with the autoreloading server is that jython has quite a hefty startup time, especially when java classes are being loaded. but it still beats having to recompile and restart the server manually! god i love jython :).

other things i've done that i find handy include:
* adding a LIB_DIRECTORY variable in the settings module and automatically appending any jar files in that directory to sys.path
* starting the shell (from manage.py) with tab completion

Leo Soto M. said...

Hi Tristan, good to hear even more people making more progress on Jython+Django.

I'm very interested in your changes, so please point me to them.

Tristan said...

i'll post a reply to the chat that was going on in django-developers group.