program organization question for web development with python

Iuri iurisilvio at gmail.com
Thu Sep 16 14:09:02 EDT 2010


Another pretty web framework is Bottle (http://bottle.paws.de). It is very
easy to setup and use. I use it to tasks like this one you want.

[]s
iuri


On Thu, Sep 16, 2010 at 3:01 PM, MRAB <python at mrabarnett.plus.com> wrote:

> On 16/09/2010 18:19, Hans wrote:
>
>> On Sep 15, 5:33 pm, James Mills<prolo... at shortcircuit.net.au>  wrote:
>>
>>> On Thu, Sep 16, 2010 at 10:14 AM, Hans<hans... at gmail.com>  wrote:
>>>
>>>> I'm new to this area. Please allow me to ask some (maybe stupid)
>>>> questions.
>>>>
>>>
>>> Without reading the rest of your post too much. Designs are up to you,
>>> I can't comment.
>>>
>>> I can only share in a fairly common view, and that is, we'd encourage
>>> you to use a web framework
>>> as opposed to plain old CGI.
>>>
>>> cheers
>>> james
>>>
>>> --
>>> -- James Mills
>>> --
>>> -- "Problems are solved by method"
>>>
>>
>> Hi James,
>>
>> Thanks for response.
>> Maybe I did not make my question clear. I never tried python web
>> programing before, so I want to start from CGI.
>>
>> I read something about web framework like django, but seems it's a
>> little bit complicated. my task is actually very simple: get search
>> string from input, and then search database, print search result. I
>> thought CGI should be good enough to do this.
>>
>> I don't have any idea about how to organize those cgi codes, so what
>> I'm asking is:
>>
>> 1. do I have to have each single file for each hyper-link? Can I put
>> them together? how?
>> 2. how can I pass a db_cursor to another file? can I use db_cursor as
>> a parameter?
>>
>>  I recently wrote a web-based program using CherryPy, which was very
> straightforward. That might suit your needs.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100916/dc62422a/attachment.html>


More information about the Python-list mailing list