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
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
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
--
3 matches
Mail list logo