1

I am building website with Python and django. There are ome data mining classes already programmed in java. Can i use those function in djnago via anything like

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
Mirage
  • 30,868
  • 62
  • 166
  • 261

1 Answers1

1

Try running Django on Jython. I believe it should be possible to integrate Java classes in such way.

Grzegorz Szpetkowski
  • 36,988
  • 6
  • 90
  • 137
  • 1
    I was not able to read full docs but suppose i already have django running under linux. I have many python modules installed and many django apps. WIll i have recode everything in Jython is i can install jython and django , files , apps can stay same. Is that the case??? – Mirage Jul 10 '11 at 13:51
  • @user825904: That's good question. For sure you don't need recode everything, however check this answer (http://stackoverflow.com/questions/471000/jython-and-python-modules/471143#471143). – Grzegorz Szpetkowski Jul 10 '11 at 14:14
  • Thanks buddy , i need to read full docs to see what it supports – Mirage Jul 10 '11 at 15:47
  • You could run a separate Jython process to use the data mining classes and then communicate between Python and Jython with [execnet](http://codespeak.net/execnet/), then you don't have to port your whole application for one feature. – 101100 Jul 10 '11 at 16:33