On Mon, Jun 8, 2009 at 6:11 AM, Aljosa
Mohorovic<
aljosa.mohorovic@...> wrote:
> i have a spring/hibernate based webapp that i would like to try to
> port to jython/django.
> first thing i would like to do is add jython to this app and create
> new page using django templates and forms (without database) just to
> check if it works.
> i don't have enough time to port entire app (mostly because it's
> deployed on ibm websphere and db2 and there is no driver/docs for db2)
> so could you provide some tips howto get started only with templates
> and forms?
>
> 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.
You will loose stuff which depends on Django's ORM like the Admin and
Auth (and perhaps Sessions). There are ways to workaround the problem,
but I don't know if this is relevant in your use case. I suspect you
just want a simpler way for your app to interact with HTTP and the
browser and Django is a good solution for that.
--
Leo Soto M.
http://blog.leosoto.com------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users