Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 15th, 2003, 01:09 PM
cvchen cvchen is offline
Hi, I'm Calvin
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: LosAngeles, SanDiego, Houston
Posts: 50 cvchen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 7 sec
Reputation Power: 6
confused with cgi... cherrypy, fastcgi, none, etc?

hey guys what's up...

i'm building a web accessible cataloging system, and i'm trying to use python for its cgi capabilities. i don't expect this system to be very high traffic at all, because it's only going to be used by the different departments here, mainly.

anyhow, i ran into cherrypy and zope and fastcgi while doing my research for python cgi online, and now i'm not sure what to think.

the server that i will *eventually* be given an account on is an IIS server.

zope seems a little overkill for my purposes. cherrypy and fastcgi seem really cool, but the instructions on using them are pretty esoteric to me.

what i want to know is, will i need to use something other than python's native cgi module to accomplish my task (ie cherrypy, etc)? i'm aware of cgi's slowness, i'm not sure if cherrypy will add to the slowness (although i think fastcgi is incorporated with cherrypy?)...

also, how hard is it exactly to implement fastcgi with python? there are so many puzzle pieces to put together just for a freakin' cgi script to run (well)!

thanks guys

Reply With Quote
  #2  
Old September 16th, 2003, 07:04 AM
ilves ilves is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Norway
Posts: 41 ilves User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 22 sec
Reputation Power: 6
You can use just cgi to build your catalog system, but you will probably need a database module too, like one of these.


Since you will be deploying your program on an IIS server, you can also use ASP.

You can run Cherrypy as it's own server, so it has none of cgi's slownesses, except if you run Cherrypy behind IIS/Apache and activate your Cherrypy program with a cgi-script. How to run a CherryPy server behind Apache
explains this. I will guess that most of that page applies to IIS too.
__________________
Good web hosting info - articles about web hosting
hb's web dev blog

Reply With Quote
  #3  
Old September 16th, 2003, 08:45 AM
cvchen cvchen is offline
Hi, I'm Calvin
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: LosAngeles, SanDiego, Houston
Posts: 50 cvchen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 7 sec
Reputation Power: 6
database module?

i'll need a database module?? haha this is getting more and more complicated... i was thinking of just unpickling (with cPickle, of course) dictionaries when i needed to =/

ilves, from what you've said i gather that cherrypy is faster than python's native cgi, am i correct? also, would i be wrong if i were to assume from your post that i could run cgi scripts through cherrypy?

i ask the last question because i've been looking up cherrypy here and there, but it all seems to point to something like support for a templating language and embedding python code within html. i appreciate your help and suggestions very much, btw.

Reply With Quote
  #4  
Old September 16th, 2003, 09:04 AM
ilves ilves is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Norway
Posts: 41 ilves User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 22 sec
Reputation Power: 6
You can use pickles, I just find it easier to work with SQL databases when the problem is not really simple.

I only know a little about Cherrypy, but since Cherrypy doesn't need to start the Python interpreter for each request it should be significantly faster than cgi.

I doubt you can run cgi scripts through Cherrypy, that's not what Cherrypy was created for.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > confused with cgi... cherrypy, fastcgi, none, etc?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT