Re: Including a php script in a template

2006-07-11 Thread Steven Armstrong
On 07/11/06 10:59, [EMAIL PROTECTED] wrote: > Hello all! > > Is it somehow possible to include an exisiting php-script which prints > a table and some textual data (after some large calculations) in a > django template? > I rather don't want to port the existing php-script as it makes it job > we

Re: Including a php script in a template

2006-07-11 Thread Aidas Bendoraitis
I think, the only way to do that is to call the php script in shell from the Django view, retrieve the results into a string, and to pass it to the template. To execute a command in the shell from withing Python, you should write something like this: import os put, get = os.popen4("ls") # replac

Including a php script in a template

2006-07-11 Thread [EMAIL PROTECTED]
Hello all! Is it somehow possible to include an exisiting php-script which prints a table and some textual data (after some large calculations) in a django template? I rather don't want to port the existing php-script as it makes it job well and is written by someone else. Thanks in advance --