473,394 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

web Develop question

hi guys ,

I' m new to python ...and I would like to ask you , wich is the best
template for developing dinamic generated pages using python ?

I would like to use something easy to install and develop like php <?
? > tags and with a lots of features .

thanks in advance and sorry for this silly question .

regards,

richard

Jun 28 '06 #1
5 1007

ge********@gmail.com wrote:
hi guys ,

I' m new to python ...and I would like to ask you , wich is the best
template for developing dinamic generated pages using python ?

I would like to use something easy to install and develop like php <?
? > tags and with a lots of features .

thanks in advance and sorry for this silly question .

regards,

richard


I suppose you're asking about frameworks.
There are many to choose from. There are two that are getting a lot of
attention lately: Django and Turbogears, but it seems there are as many
options as developers out there...
If you're running your own server, you can choose anyone.
The real problem is finding a shared hosting service with the option of
your choice (at an affordable price).

I am very comfortable with bare-bones mod_python. Mod_python is a
module that embeds the python interpreter into Apache (a la php). It is
not a framework (what's more, many frameworks rely on mod_python), but
it gives you many facilities for web development.

I find specially handy its publisher handle, which lets you match urls
to pages.
It can be complemented with a template system, like Cheetah (very good)
or its own PSP (python server pages implementation) as a template
system.
It also gives you the best performance (as far as I know, please
correct me if I'm wrong).

Luis

Jun 28 '06 #2
ge********@gmail.com wrote:
I' m new to python ...and I would like to ask you , wich is the best
template for developing dinamic generated pages using python ?

I would like to use something easy to install and develop like php <?
? > tags and with a lots of features .

thanks in advance and sorry for this silly question .


for a start, look under "templating engines" on this page:

http://wiki.python.org/moin/WebProgramming

(hint: googling for stuff works pretty well, too ;-)

</F>

Jun 28 '06 #3
Dear Luis ,

Thanks for your kindly answer , so you say that installing mod_python
and a template like chetaah or dyango I can do like as I do with php
and Apache ?

< ?
print........
?>
Thanks ,
regards
Richard

Luis M. González ha escrito:
ge********@gmail.com wrote:
hi guys ,

I' m new to python ...and I would like to ask you , wich is the best
template for developing dinamic generated pages using python ?

I would like to use something easy to install and develop like php <?
? > tags and with a lots of features .

thanks in advance and sorry for this silly question .

regards,

richard


I suppose you're asking about frameworks.
There are many to choose from. There are two that are getting a lot of
attention lately: Django and Turbogears, but it seems there are as many
options as developers out there...
If you're running your own server, you can choose anyone.
The real problem is finding a shared hosting service with the option of
your choice (at an affordable price).

I am very comfortable with bare-bones mod_python. Mod_python is a
module that embeds the python interpreter into Apache (a la php). It is
not a framework (what's more, many frameworks rely on mod_python), but
it gives you many facilities for web development.

I find specially handy its publisher handle, which lets you match urls
to pages.
It can be complemented with a template system, like Cheetah (very good)
or its own PSP (python server pages implementation) as a template
system.
It also gives you the best performance (as far as I know, please
correct me if I'm wrong).

Luis


Jun 29 '06 #4
ge********@gmail.com wrote:
Dear Luis ,

Thanks for your kindly answer , so you say that installing mod_python
and a template like chetaah or dyango I can do like as I do with php
and Apache ?


Do not get confussed:
Django is a complete web development framework, and "Cheetah" is just a
template engine.

You don't need any framework to use mod_python (although many
frameworks use mod_python as a deployment option, as well as CGI or
FastCGI, etc).
Mod_python is just the module that lets you use python with Apache.

However, it has some built-in capabilities for letting you build web
sites.
They are called "handlers". You can write your own handlers, or you can
use the ones included within mod_python.

The main two handlers are:
1) PSP: this stands for Python Server Pages, and it is a way to parse
scripts in a PHP-like way. For example, you enclose your python
instructions between <% and %> tags, and your can mix them within html.
However, it is not very polished and I would recomend it...

2) Publisher: It lets you write scripts where you define functions,
that correspond to different pages. For example, if you define a
function "index" it will contain the code to display your main page.
This way you can create a whole site with only one script.
You can include html code within these functions, but it is recommended
to use a template system combined with publisher, in order to separate
presentation and logic.
Cheetah is a very good templating engine.

I suggest you start by reading mod_python's documentation, and then,
when you are up and running with all your installation, you can check
Cheetah...

Hope it helps...

Luis

Jun 29 '06 #5

Just to give you an idea of what it is, you can check this article:
http://www.onlamp.com/pub/a/python/2...ver_pages.html...

This explains the whole thing much better than I did with my poor
english...

Luis

Jun 29 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jimmy | last post by:
Dear All, I have a interesting question, may sound dump. Could I develop a vb6 programs that run under win2000 server terminal services and the program is access by a pocket pc? How could I...
14
by: Matt | last post by:
Any progammers looking for a killer app to develop? How about a voice enabled forum? One of the most powerful, exciting, and engrossing experiences on the Internet is the Forum. The first great...
4
by: Jonathan Li | last post by:
I have posted the question before but nobody have given me a solution. I would like to rephrase my requirement and want to hear your advice. We are developing application packages for logistics...
6
by: DraguVaso | last post by:
Hi, I have a, maybe strange looking, question: Is there any way to obstruct developpers to Develop and or Deploy a newer version of a VB.NET-application? Things should happen like this: -...
2
by: Hazz | last post by:
If in an interview next week I was told to Design and Develop Extensible Web Application Frameworks using Microsoft .NET technologies. How do I break that question down? My first temptation...
1
by: aparnasinha26 | last post by:
Hi All, I have to develop an application .The application has to update database.It does not have any user interface.It needs to run on Windows XP/2000 automatically at a particular time say 4...
2
by: ljgomez | last post by:
Hi everyone I just starting to develop in AJAX and I'm very interested in develop over PHP & Javascript. My question is about witch tools do you use for it. I'ven seen Zend Studio and someone...
0
by: feifei4927 | last post by:
To develop in EPIC editor Hi, Is there some one have the experience to develop in Arbortext EPIC editor? I am trying to write a function to translate terms in the xml file being edited in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.