On Sun, Jun 14, 2009 at 8:43 PM, Aljosa
Mohorovic<aljosa.mohorovic@...> wrote:
> On Sat, Jun 13, 2009 at 9:03 PM, Leo Soto M.<leo.soto@...> wrote:
>>> is it possible to combine parts of jython/django to integrate with
>>> existing java apps, in this case spring/hibernate?
>>
>> Sure!
>>
>> You can, for example, use Django's views/templates/urls.py (and
>> perhaps forms and the others rendering-related helpers) while still
>> using hibernate as the ORM.
>
> i guess the best entry point is replacing spring url handler with
> django urls but i don't know how to start.
> any docs you could recommend or some source code where i can figure
> out how to start?
Take a look at the web.xml generated by jython manage.py war. It
"mounts" the Django app on "/" (via the ModJy servlet and the
application.py shipped on the WAR file). If that doesn't work for your
use case, you can modify it so Django is mounted on a different path
and then you can share Spring-mapped URLs and Django-mapped URLs on
the same web application.
Regards,
--
Leo Soto M.
http://blog.leosoto.com
|