How to use externel CSS and (static) images in Go, Google App Engine

Seifer

New Member
I'm working on a webpage in Go. The Go code uses "html/template" to parse HTML. I would like to use CSS in the project. Everything is working well when I use internal CSS code, but when I would like to change to external it dosen't work. It looks like it can't access to the .css file. Here is my app.yaml configuration:\[code\]application: makerboardstestversion: 1runtime: goapi_version: go1handlers:- url: /.* script: _go_app- url: /stylesheets static_dir: stylesheets- url: /images static_dir: images \[/code\]Here is how I would like to access to the .css from the html:\[code\]<head><link href="http://stackoverflow.com/stylesheets/main.css" media="screen" rel="Stylesheet" type="text/css" /></head>\[/code\]I also have problems with (static) images. I would like to access to the image with this html code: \[code\]<img src="http://stackoverflow.com/images/img1.jpg" />\[/code\]What can be the problem?(I'm testing it on my PC, Win 7)
 
Back
Top