473,626 Members | 3,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python / web

Hi,
I know general Python pretty well and interested in using Python for a
web project. It will have the standard display, user input, fields,
look-ups, reports, database routines, etc..... Been looking though the
Python web docs. and seeing stuff like mod_python, CGI, PSP, CherryPy,
etc..., Also a fair amount of googling. I'll say there's a large
amount of technology to pick from. Rather than spend time going down
the wrong road, can I get some feedback as directions from you folks
that's "been there, done that."

thanks a bunch.
Robert
Sep 1 '05 #1
6 1288
Check out Django:
http://www.djangoproject.com/

Sep 1 '05 #2
IMHO it all depends on the complexity required by the final product that
you are attempting to create. For complex projects, it is hard to beat
Zope/Plone. They have lots of built in things that you don't have to
write and are nearly infinitely extensible. We recently chose Zope for
a project and have been very happy with the outcome. With Zope it was
easy to design an AJAX API (connect via XMLRPC) and provide a WebDAV
interface to our applications which would have been extremely hard with
a lighter weight application engine. The learning curve has been steep,
but no more steep than it would be to do in WebLogic or WebSphere. With
flexibility comes complexity. For less complex needs there are other
more lightweight things like CherryPy.

Hope info helps.
Larry Bates

Robert wrote:
Hi,
I know general Python pretty well and interested in using Python for a
web project. It will have the standard display, user input, fields,
look-ups, reports, database routines, etc..... Been looking though the
Python web docs. and seeing stuff like mod_python, CGI, PSP, CherryPy,
etc..., Also a fair amount of googling. I'll say there's a large amount
of technology to pick from. Rather than spend time going down the
wrong road, can I get some feedback as directions from you folks that's
"been there, done that."

thanks a bunch.
Robert

Sep 1 '05 #3
Robert <rj*@nowhere.ne t> writes:
Hi,
I know general Python pretty well and interested in using Python for a
web project. It will have the standard display, user input, fields,
look-ups, reports, database routines, etc..... Been looking though the
Python web docs. and seeing stuff like mod_python, CGI, PSP, CherryPy,
etc..., Also a fair amount of googling. I'll say there's a large
amount of technology to pick from. Rather than spend time going down
the wrong road, can I get some feedback as directions from you folks
that's "been there, done that."


Well, as usual when answering such questions, the answer is "It
depends." If you're interested in getting a web site up with a
Python-like tool, then you want a framework. Others have already
suggested Zope/Plone, which seems to be the most popular such
system. I only have limit experience with Zope, but I found that it
tended to own the resulting code, such that reusing it in another
framework would be a PITA.

If you're more interested in working in Python, with a cleaner
representation of the HTML than as Python strings with %()'s scattered
through them, then you want a templating systems. I recently evaluated
a number of templating systems for a client, and we settled on
Cheetah. The reasons for this were:

1) Cheetah is not just a web templating language; it can be
used for anything. My first Cheetah template generated XML
to feed to an XMLHttpRequest.

2) Cheetah templates compile to Python classes, so anything I
can use to hook Python up to my web server I can use with Cheetah
templates.

3) Cheetah constructs don't try and look like HTML. This
means less typing to use them, and they won't cause problems
with whatever HTML/XML-aware editor you may want to use.

In refernce to the "owning" affect above, all the real work on our
pages is done in pure Python classes that the Cheetah templates
inherit from. So we can remove the dependency on Cheetah by changing
one fixed line in each file to a different line - which change can be
made mechanically.

<mike
--
Mike Meyer <mw*@mired.or g> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
Sep 2 '05 #4
Robert <rj*@nowhere.ne t> wrote:
Hi,
I know general Python pretty well and interested in using Python for a
web project. It will have the standard display, user input, fields,
look-ups, reports, database routines, etc..... Been looking though the
Python web docs. and seeing stuff like mod_python, CGI, PSP, CherryPy,
etc..., Also a fair amount of googling. I'll say there's a large
amount of technology to pick from. Rather than spend time going down
the wrong road, can I get some feedback as directions from you folks
that's "been there, done that."


I am now writing a moderately complex application using karrigell.
It has a very shallow learning curve, if you know python and html, you
can start writing an application right away, but yet it is rather
versatile, and the author is responding.

--
-----------------------------------------------------------
| Radovan GarabÃ*k http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__ garabik @ kassiopeia.juls .savba.sk |
-----------------------------------------------------------
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
Sep 2 '05 #5
Karrigell is a very good option. Easy to learn and easy to use.
In words of his author:

"Karrigell is a simple web programming solution, written in Python. It
has been designed to be really simple to use : integrated web server
and data base ( gadfly), easy access to environement data and form
fields, yet full-featured and powerful : Python script execution in the
same process as the server (no CGI), server pages including html and
Python code (similar to PHP, JSP, ASP), easy handling of
authentication, session management, localization features, etc

Karrigell can also work with external web servers : Apache and Xitami
are currently supported. All current databases (sqlite, MySql,
PostGresQL, etc) can be used with the corresponding Python API's. A
convenient way of using databases with a dictionary-like syntax is
provided for gadfly and sqlite "

Sep 2 '05 #6
Mike Meyer wrote:
Robert <rj*@nowhere.ne t> writes:
I know general Python pretty well and interested in using Python
for a web project.
Others have already suggested Zope/Plone, which seems to be the most
popular such system. I only have limit experience with Zope, but I
found that it tended to own the resulting code, such that reusing it
in another framework would be a PITA.


This is much less the case for Zope 3, the separation between domain and
presentation code is much easier to maintain.
--
Benji York

Sep 2 '05 #7

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

Similar topics

0
8265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8705
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8504
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.