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 July 23rd, 2004, 02:34 AM
acemaverick1381 acemaverick1381 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: USA
Posts: 342 acemaverick1381 User rank is Private First Class (20 - 50 Reputation Level)acemaverick1381 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 16 h 1 m 58 sec
Reputation Power: 5
Send a message via AIM to acemaverick1381
Python To Cgi In Windows

I was messing around with Apache on my Linux computer, so I decided just for kicks I would install it on my Windows computer. Now, my question is, how do I create a .cgi file in Windows in the Python language. Its not like I can save something as .cgi, I must have to compile it somehow... Can someone help me with this?

Reply With Quote
  #2  
Old July 23rd, 2004, 02:54 AM
Grim Archon's Avatar
Grim Archon Grim Archon is offline
Mini me.
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2003
Location: Cambridge, UK
Posts: 783 Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)Grim Archon User rank is Corporal (100 - 500 Reputation Level)  Folding Points: 1488 Folding Title: Novice Folder
Time spent in forums: 3 Days 2 h 15 m 57 sec
Reputation Power: 7
Send a message via MSN to Grim Archon
I don't have Apache on Windows set up at the moment but from memory:

The setup of CGI is very much the same as it is for Linux. Place the file in directory that you have configured for CGI use. (The Apache documents explain this and if you Google apache windows CGI you'll also find additional help).

You need to have the path to python as the first line in the python module:

#! c:\python23\python.exe

So that Apache knows where to find the executable.

grim
__________________
*** Experimental Python Markup CGI V2 ***

Reply With Quote
  #3  
Old July 23rd, 2004, 03:58 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,536 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 3 m 4 sec
Reputation Power: 63
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Nope, no compilation. Its exactly the same setup as on *nix except the path you put at the top of you're CGI file is the path to Python on your windows system - like grim said. It's really easy to set up actually so i don't think you'll have any problems with it .

Have fun,

Mark.
__________________
programming language development: www.netytan.com Hula


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Python To Cgi In Windows


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 2 hosted by Hostway
Stay green...Green IT