Hi On Jun 29, 7:31 pm, spacetaxi <[EMAIL PROTECTED]> wrote: > Currently, I'm thinking about implementing some kind of http-proxy > within my django-app, so django would forward the incoming requests > (get/post) to the particular application.
This is good idea, but probably should be implemented on a layer upper - inside of apache. Probably in mod_python. > When receiving the response, > django could modify the html source so the content gets embedded into > my common page template (with the menu bar at the top of the page). In fact, that is very close to the working implementations I've seen so far. To achieve great integration, you definitely need to be able to form single page output from all 3 components. For example, on some sites we've made some part of functionality is done in Django, some in PHP, and we need to print out information on page from both appplications. The simplest way seems to be just to use, for example PHP to render it once, and Django to render PHP output - this should be done inside of apache handler for performance reasons. Another (more complicated) way is to write function handlers so one application can ask another application for certain functionality, and then render page - this can be done with software bridges like this one: http://developers.facebook.com/thrift/ At one of projects we are currently integrating we used different approach. We have duplicated HTML templates, and made session data available from PHP to Django by running Django as 'apache' user, and reading PHP Session data via PHPUnserialize.py. Then, we wrote our own decorators login_required, etc to get the clean integration. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

