Web devel with python. Whats the best route?
Lele Gaifax
lele at seldati.it
Mon Jan 8 15:27:21 EST 2001
>>>>> On Mon, 8 Jan 2001 17:46:13 +0100, "Alex Martelli" <aleaxit at yahoo.com> said:
AM> "Chris Watson" <chris at voodooland.net> wrote in message
AM> news:mailman.978910629.6814.python-list at python.org...
>> I'm about to start converting the small fool proof (ha ha)
>> admin system I have been working from console based to web
>> based. What is the easiest way to go about integrating python
>> into apache so I can start web'izing this app? mod_python,
>> mod_snake, PyApache?
AM> CGI. Really. Your admin system doesn't look like the kind of
AM> thing that will be continuously getting multiple hits a
AM> second, making CGI overhead a problem. If that is the case,
AM> CGI is easiest. *Do the simplest thing that can possibly
AM> work*!
PyApache does exactly this, only faster...
...but I'm a little biased here :)
AM> <snip>
AM> "Session continuity" will have to be provided via cookies, but
AM> that's not really all that hard -- the amount of state you
AM> need to save and restore between hits is most likely limited
AM> anyway (making it acceptable for cookie-residence), or else
AM> you can always use appropriate shelve files (presumably
AM> relying on gdbm, whihc is OK) and just cookie the
AM> shelve-access keys (that might impact scalability IF you were
AM> close to the hit-per-second mark, but, are you _really_
AM> worried about such loads?).
All mentioned modules do help in session handling, by providing some
sort of persistent storage (tipically a dictionary).
AM> Then again, maybe I'm simply being a dinosaur
AM> on this specific theme!-)
You are not alone !-)
AM> Alex
Ciao, lele.
PS: Alex, un ciao particolare! Ti ricordi di me? Sublink... :)
--
nickname: Lele Gaifax | Quando vivro' di quello che ho pensato ieri
real: Emanuele Gaifas | comincero' ad aver paura di chi mi copia.
email: lele at seldati.it | -- Fortunato Depero, 1929.
More information about the Python-list
mailing list