Ok, so I can probably live with duplicating some HTML. Then my next question is how to access .css and image files (which reside under the server's document root) from within my template? Do I need to duplicate those under my app path somewhere?
Ken.... On Sep 29, 12:25 pm, jonknee <[EMAIL PROTECTED]> wrote: > On Sep 29, 12:06 pm, megrez80 <[EMAIL PROTECTED]> wrote: > > > Regarding "repurposing" the PHP-generated HTML, do you mean > > statically, eg. copying the page source into a template? > > > If not, how can this be accomplished dynamically? Is there a way to > > get the raw HTML output of a PHP-based URL programatically and then > > plug that into a template, so as to avoid having duplicated HTML? > > It really depends on how your PHP site is constructed, most notably if > it's nicely templated or not. I was tasked with integrating Django on > a PHP site and for that project it was easier to copy the base > template into a Django template and then pull in a few of the > same .html includes (ad code and what not). We'll only have to mess > with the Django template if the site's core design changes and that > doesn't happen often enough to make it even a minor problem. You could > probably use PHP-CLI to fetch PHP output, but that wasn't necessary on > the project I worked on. > > The only tricky part of our integration is sharing the session. We > were using Django for the registration/management/sign on processes > and the PHP site needed to know if the user was signed in and had an > active subscription. A minor bit of trickery, but it was a pretty > seamless transition (the subscribers never noticed). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---