Unable to control requests for static files on Google App Engine
Posted
by dan
on Stack Overflow
See other posts from Stack Overflow
or by dan
Published on 2010-05-18T00:33:14Z
Indexed on
2010/05/18
0:40 UTC
Read the original article
Hit count: 291
python
|google-app-engine
My simple GAE app is not redirecting to the /static directory for requests when url is multiple levels.
Dir structure:
/app/static/css/main.css
App:
I have two handlers one for /app and one for /app/new
app.yaml:
handlers:
- url: /static
static_dir: static
- url: /app/static/(.*)
static_dir: static\1
- url: /app/.*
script: app.py
login: required
HTML:
Description: When page is loaded from /app HTTP request for main.css is successful
GET /static/css/main.css
But when page is loaded from /app/new I see the following request:
GET /app/static/css/main.cs
That's when I tried adding the /app/static/(.*) in the app.yaml but it is not having any effect.
© Stack Overflow or respective owner