Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Alex Krycek
Thank you all for your help. I've finally figured it out. I took people's suggestions and typed in the path for the CSS file into my browser. Well, I received an internal service error. When I checked the error log, I had received the following: [Thu Apr 10 20:38:47 2008] [error] [client ::1] (8)E

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Curtis Adkins
It seems that your link to the stylesheet is just pointing to the wrong place. Like the others said, check to make sure you are pointing to the right place of the CSS file by typing it into the web browser. If you use the link you gave : "http://localhost/cgi-bin/style1.css"; what shows up? Anyth

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Alan Gauld
"Alex Krycek" <[EMAIL PROTECTED]> wrote > I did look into CGI tutorials, but they didn't use Python code. They > used > something like: > start_html(-title => $title, > -head => style({type => 'text/css'} ) That looks like Perl. Try the CGI tutorial on the Python web site. That would be a goo

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Alan Gauld
"Alex Krycek" <[EMAIL PROTECTED]> wrote > How do I apply an external stylesheet to the XHTML in a Python > script? Python doesn't really do anything with CSS that is handled by the browser. All Python can do is insert the correct HTML into the server response to the browser. > I tried to inclu

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Kent Johnson
Alex Krycek wrote: > Eric, > > I'm sorry, I never actually managed to get any stylesheets to work with > my cgi scripts. The scripts that did work are just simple HTML. Where are the css files that work located? What URL is used to fetch them? If you put the css for your cgi into the same loca

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Eric Walstad
Hey Alex, On Thu, Apr 10, 2008 at 1:43 PM, Alex Krycek <[EMAIL PROTECTED]> wrote: > Eric, > > I'm sorry, I never actually managed to get any stylesheets to work with my > cgi scripts. The scripts that did work are just simple HTML. I'm using > Apache 2.2.8 on a Mac OS X 10.4.11 system. If I underst

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Alex Krycek
Eric, I'm sorry, I never actually managed to get any stylesheets to work with my cgi scripts. The scripts that did work are just simple HTML. I'm using Apache 2.2.8 on a Mac OS X 10.4.11 system. When I get home I'll definitely look up the log file and paste it here. I'll also have to fool around w

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Eric Walstad
Hi Alex, On Thu, Apr 10, 2008 at 1:22 PM, Alex Krycek <[EMAIL PROTECTED]> wrote: > Hi, > > I've looked all over the internet but have not found an answer to my > question. How do I apply an external stylesheet to the XHTML in a Python > script? I tried to include the standard " type='text/css' href

Re: [Tutor] Python, CGI and CSS

2008-04-10 Thread Steve Willoughby
On Thu, Apr 10, 2008 at 02:22:47PM -0600, Alex Krycek wrote: > Hi, > > I've looked all over the internet but have not found an answer to my > question. How do I apply an external stylesheet to the XHTML in a Python > script? I tried to include the standard " type='text/css' href='style1.css' />""

[Tutor] Python, CGI and CSS

2008-04-10 Thread Alex Krycek
Hi, I've looked all over the internet but have not found an answer to my question. How do I apply an external stylesheet to the XHTML in a Python script? I tried to include the standard """ in with the rest of the printed XHTML. But that didn't work. I changed the href attribute to "/style1.css",