Deciding on best way to integrate Django and Tryton

799 views
Skip to first unread message

Moisés Gabriel Cachay Tello

unread,
Nov 5, 2013, 5:16:37 PM11/5/13
to try...@googlegroups.com
Hey guys,

I'm working on an ERP for SMBs which I want to power with Tryton. Right now I'm currently developing a Django client that will integrate with trytond and I need to decide on the best way to integrate both.

After doing some google and mailing list research it seems the best available options are:

- Proteus
- JSON-RPC
- Something like this: https://code.google.com/p/tryton/wiki/TrytonDjango

What do you think is the best option? Or perpaps you could mention some pro/cons of each approach?


Thanks!


P.S.: I know abot Nereid but I still think that my and my team's experience with Django will, in the end, pay off for the initial work we will have to do what the Nereid guys have already done with Flask.

Raimon Esteve

unread,
Nov 6, 2013, 2:25:56 AM11/6/13
to try...@googlegroups.com
Hello,

If you select Django and Tryton, you need a connector because database
o models are different

1- Add webservices in Django, for example, Tastypie. And a module in
Tryton call this webservices.
2- If Django is in same server than Trytond, in your django view code
you could import trytond. For me the best option.
3- You could import proteus in Django (could you run Django is not
same server than Trytoind), but some moths ago, I read is low proteus
when work with big data. Anybody could confirm this?
4- Migrate a Nereid. 100% integrated a Trytond.

Breno Colom

unread,
Nov 6, 2013, 10:58:57 AM11/6/13
to try...@googlegroups.com
Cedric confirmed in an August thread that proteus wasn't designed for speed. Where proteus should really shine is in high level testing where it can easily simulate a client.
 
4- Migrate a Nereid. 100% integrated a Trytond.

Even though the Nereid guys have done awesome work I don't consider that Nereid's integration with the latest versions of Tryton is really on par to be considered production ready. We had problems getting to run nereid-project with Tryton 2.8. I saw some pull requests to update nereid to 3.0 (I think it was you Raimon who opened them) but they aren't quite ready. Perhaps someone really interested in leveraging all the good work Sharoon and the Openlabs team has done should release some updated and comprehensive docs on getting it to run correctly.

Right now it seems that among the options you've mentioned either 1 or 2 are the best ways to integrate Django and Tryton. Probably 2 is the better option in terms of both performance and easiness of getting it up and going.


-- 
Breno

Sharoon Thomas

unread,
Nov 6, 2013, 11:13:28 AM11/6/13
to try...@googlegroups.com
On Nov 6, 2013, at 9:28 PM, Breno Colom <breno...@gmail.com> wrote:

 
4- Migrate a Nereid. 100% integrated a Trytond.

Even though the Nereid guys have done awesome work I don't consider that Nereid's integration with the latest versions of Tryton is really on par to be considered production ready. We had problems getting to run nereid-project with Tryton 2.8. I saw some pull requests to update nereid to 3.0 (I think it was you Raimon who opened them) but they aren't quite ready. Perhaps someone really interested in leveraging all the good work Sharoon and the Openlabs team has done should release some updated and comprehensive docs on getting it to run correctly.

Sorry about this. We are planning to put in some documentation in the style of the Angular JS tutorials
sometime in the near future. We hope that solves the issue.

You can find us in the IRC if you decide to go ahead and face some issues with nereid.


Thanks & Regards


Sharoon Thomas
Openlabs Technologies & Consulting (P) Limited

m: +1 813.793.6736 (OPEN) Extn. 200
t: @sharoonthomas 

- We win when our customers win
signature.asc

Raimon Esteve

unread,
Nov 6, 2013, 12:30:25 PM11/6/13
to try...@googlegroups.com
I think is offtopic about integration Django - Tryton.

> Even though the Nereid guys have done awesome work I don't consider that
> Nereid's integration with the latest versions of Tryton is really on par to
> be considered production ready. We had problems getting to run
> nereid-project with Tryton 2.8.

Ok. The problem is not nereid -core module-. The problem is
nereid-project module. ;)

It's not necessary use this module about projects. You could use other
modules or create you own module.

> I saw some pull requests to update nereid to
> 3.0 (I think it was you Raimon who opened them) but they aren't quite ready.

I confirm we are working nereid + Tryton 3.0.

Some weeks ago I pull request to upgrade nereid from openlabs repo in
version 3.0. I'm not owner this repo to merge.

Finally, I remember last Tryton unconference about to include nereid
in core Tryton. A year later, version 3.0 out and Nereid is not
included. Interesting to talk tomorrow o next days in Barcelona.

See you.
Reply all
Reply to author
Forward
0 new messages