Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming
View Poll Results:
0%
Voters: 0. You may not vote on this poll


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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 26th, 2001, 07:07 AM
deepspring's Avatar
deepspring deepspring is offline
Is a Psycho
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: In your computer
Posts: 231 deepspring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to deepspring Send a message via Yahoo to deepspring
Python, Sessions and MySQLdb

Hi,

I was wondering if anyone knows of a site that provides Tutorials or Articles on using Python, Sessions and MySQLdb togethor (like some of the awesome PHP+MySQL ones on devshed) for web building?

After experimenting (I'm learning it, I got a fairly good book for Xmas but it doesn't go really far into using it for this purpose) with Python, I am starting to wonder why it isn't very common or why it is hard to find articles on web building with it...
__________________
deepspring

- "Netscape 4 users are like lemmings... You can't help but laugh when one falls off a cliff"

Reply With Quote
  #2  
Old December 26th, 2001, 08:07 AM
Taradino Taradino is offline
Python Prophet
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Amersfoort, The Netherlands
Posts: 45 Taradino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I voted "no" for now. I don't think Python is suited very well for CGI programming. It lacks the speed of PHP, and not only simple speed, but also speed of development. Because PHP is targeted completely at the web environment(although they're trying to do more with it, such as PHP-GTK, which is IMO complete crap) apps can be developed very quickly. With Python it isn't that easy. I think Python has other uses which it is better at, such as embedding in a C++/Java app, or using it as a replacement for shell scripting.

Note:
I have only tried standalone Python web programming. I still have to try ASP+Python, and see if the added benefits of ASP would make Python more suitable for web programming.

For some good info about web programming with Python, check this:

Web Programming Topic Guide
__________________
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. - Jamie Zawinski, in comp.lang.emacs

Reply With Quote
  #3  
Old December 26th, 2001, 06:10 PM
deepspring's Avatar
deepspring deepspring is offline
Is a Psycho
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: In your computer
Posts: 231 deepspring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to deepspring Send a message via Yahoo to deepspring
I hadn't noticed any speed difference between PERL and Python CGI at compile time, but you are right, it isn't as fast as mod_php4. But, I am still curious....

Also the Webware Application server looks interesting, might check it out...

http://webware.sourceforge.net/

EDIT:

I couldn't get webware to work (yes I followed the instructions), so If anyone else knows how to do Sessions + MySQLdb please post something...

Reply With Quote
  #4  
Old December 27th, 2001, 03:48 PM
ZeUs's Avatar
ZeUs ZeUs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: St. George, Utah
Posts: 63 ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level)ZeUs User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 31
I also voted "no" because Python, in and of itself, isn't as good a PHP for web development.

Zope however, is supurb for web development, once you get over the learning curve.

NOTE: Zope is written in Python and you use Python a lot writing apps to run in Zope.

I used to love PHP/MySQL for everything, but now I really love Zope.

Sure, Python doesn't have an interpreter as fast as PHP's, but it does make for faster developed, cleaner code than PHP does.

Take a look at Zope, you may be glad you did.

DISCLAIMER: I was the one who reprogrammed the DevShed engine in Zope, so I'm a bit biased.
__________________
Lucas Marshall

Reply With Quote
  #5  
Old December 27th, 2001, 05:17 PM
deepspring's Avatar
deepspring deepspring is offline
Is a Psycho
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: In your computer
Posts: 231 deepspring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to deepspring Send a message via Yahoo to deepspring
Thanks, I will check Zope out.

Is Devshed going to do a better and more in depth tutorial on using Zope, Apache and MySQL?

I did notice the slightly biasedness.

Reply With Quote
  #6  
Old December 27th, 2001, 07:52 PM
Taradino Taradino is offline
Python Prophet
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Amersfoort, The Netherlands
Posts: 45 Taradino User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I totally forgot about Zope. Shame on me.
I'm not reallt into using Zope, but I have tried it, just to know what it was, and it seemed very good. You could even say it is one of the Python flagship products.

Reply With Quote
  #7  
Old January 8th, 2002, 12:18 AM
deepspring's Avatar
deepspring deepspring is offline
Is a Psycho
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: In your computer
Posts: 231 deepspring User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via AIM to deepspring Send a message via Yahoo to deepspring
Well... your not wrong about the learning curve (Zope), it does take a bit. It is still a very interesting development tool. Rather slow too in some places (like start-up).

It kind of reminds me of ColdFusion in a way... only with an interface and other weird bits.

But, I think I might leave that for later (or atleast when I own my own Server) to use it for any sites/intranets I build in the near future.

I just got one Question... I use (Apache, OpenSSL, Mod_PHP 4.0.4, Mod_ASP) OpenSA 1.0.b3 , how do I get them to work togethor?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Python, Sessions and MySQLab


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 3 hosted by Hostway