[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-26 Thread SIE
Adam, Good. We'll be precise and say that the solution to this problem is to have the HTML use relative URLs based at the home directory instead of the current directory. Thanks On Sep 25, 11:23 pm, Adam Fisk <[EMAIL PROTECTED]> wrote: > Just for sanity's sake, both are relative URLs.  It would

[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-25 Thread Adam Fisk
Just for sanity's sake, both are relative URLs. It would only be absolute if it included the host name and protocol. On Sep 25, 6:28 pm, SIE <[EMAIL PROTECTED]> wrote: > Wooble, > > Your solution of using an absolute URL instead of a relative one > worked. > > Many thanks! > > On Sep 25, 3:51 pm

[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-25 Thread SIE
Wooble, Your solution of using an absolute URL instead of a relative one worked. Many thanks! On Sep 25, 3:51 pm, Wooble <[EMAIL PROTECTED]> wrote: > > This isn't a problem with App Engine, that's (expected) behavior by > the web browser caused by a relative URL. > > The solution is to refer

[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-25 Thread Wooble
On Sep 25, 4:46 pm, SIE <[EMAIL PROTECTED]> wrote: > However, if we substitute for the last handler > > - url: /dir >   static_files: dir/index.html >   upload: dir/index.html > > then a call to > > http://localhost:8080/dir > > yields the error > > INFO     2008-09-25 20:39:07,117 dev_appserver

[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-25 Thread SIE
Marzia, Thanks for your reply. I cut and pasted your handlers into my app.yaml file, but the error persists, and it may be a fundamental problem. If the main directory contains a subdirectory dir with two files index.html styles.css with index.html including styles.css, then with the handlers

[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-24 Thread Marzia Niccolai
Rather, I made a typo, this works for me: - url: /(.*\.(html|css)) static_files: \1 upload: dir/.*\.(html|css) - url: /dir(.*) static_files: dir/index.html upload: dir/index.html For the first handler, you have to upload the static files from the directory. -Marzia On Wed, Sep 24, 200

[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-24 Thread SIE
Marzia, Thank you for your reply. I tried the code you suggested, and App Engine still incorrectly searches for styles.css (the file index.html includes) in the home directory instead of in the subdirectory dir. Back to the drawing board. On Sep 24, 9:37 am, "Marzia Niccolai" <[EMAIL PROTECTE

[google-appengine] Re: Automatically adding a static index.html to a URL with app.yaml

2008-09-24 Thread Marzia Niccolai
Hi, The following works for me: - url: /(.*\.(html|css)) static_files: \1 upload: .*\.(html|css) - url: /dir(.*) static_files: dir/index.html upload: dir/index.html -Marzia On Tue, Sep 23, 2008 at 7:30 PM, SIE <[EMAIL PROTECTED]> wrote: > > Dear Group, > > Suppose that your home directory