[python-uk] <?python ...?>

Robin Shields robinshields at gmail.com
Tue Mar 3 08:46:40 CET 2009


I would think the indentation in python would make this pretty difficult,
indentation doesn't matter much with php because it uses curly braces, so it
can be mixed in with html quite easily (although this is becoming less
common).  For this reason, most python web frameworks, (e.g. Django and
CherryPy) use specialised templating languages, they are both worth checking
out.

On Tue, Mar 3, 2009 at 6:30 AM, umar <umarhafeez at yahoo.com> wrote:

> http://www.python.org/community/pycon/dc2004/papers/14/
>
> http://www.howtoforge.com/embedding-python-in-apache2-with-mod_python-debian-ubuntu-fedora-centos-mandriva-opensuse
>
> If I were you, I would stick with CGI interface to python scripts. In above
> cases the server needs to be modified (as in PHP,
> the only difference is that a lot of hosting companies particular shared
> hosting offer the server which can interpret embedded
> javascript and php code but not embedded python).
>
> This might just be my misconception but making use CGI interface may also
> offer more security than going for embedding option.
>
> Well I am just amateur myself...
>
> Regards
>
>
>
>
> Malte Beckmann wrote:
>
>> Hello!
>>
>> Just wrote my first 30 odd python scripts and loving this language.
>>
>> But do, however, have a burning question on my mind.
>>
>> Why can I not just do <?python ... ?> in my webpages like I can do with
>> PHP?
>>
>> Cheers! /m
>>
>>
>> _______________________________________________
>> python-uk mailing list
>> python-uk at python.org
>> http://mail.python.org/mailman/listinfo/python-uk
>>
>>  _______________________________________________
> python-uk mailing list
> python-uk at python.org
> http://mail.python.org/mailman/listinfo/python-uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-uk/attachments/20090303/5a4bd711/attachment.htm>


More information about the python-uk mailing list