Hello,

I don't know what is the best approach for the communication between two django applications.

We have a website using django and django-cms. We have another application, the "seminar" app for managing some informations like seminars, news, people profiles.... They have both their databases and are on different server. Now we would like to take some information from the "seminar" appli and show them on the website. My question is how to retrieve the data from the seminar app. We are developping both applications so we can do whatever we want but for now we would like to keep them separated. To display the information on the website I was thinking of using template tags to gather the information and send them to the page and I see 3 different ways to do access the information.

1) consider the distant database as a simple database and perform queries in SQL.

2) use the models.py file of the seminar app (or use inspectdb) and use database router to gather the information from the distant database mode.

3) make a REST api of the seminar application ( I have no idea how to do that and perhaps it is not the correct approach)

My main concern is that I'm in charge of the website part but not the seminar part and this one may evolve without me knowing it and so I'd like to be resilient to a change in the seminar app that doesn't modify the fields I'm using. I mean the seminar app may have other models but normally the seminar part should not change.

May be my question is not clear but I would like to know if other people have this kind of setup one django app feeding another one and how did they solve this problem.

sincerely.

L.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/46339c58-d15d-6db0-4c36-39045e6f1d74%40lpn.cnrs.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to