javascript - serving static files on GAE -


this question has answer here:

i'm trying serve test file javascript. test site loading, js isn't loading (if in devloper's console, see there's 404 error -- path right). first tried keeping in root.

edited: loki pointed out way wrong

i tried keeping in file called static (except yaml file outside)

application: test version: 1 runtime: python27 api_version: 1 threadsafe: true  handlers:  - url: /   static_files: static/test.html   upload: static/test.html 

html:

<!doctype html public "-//w3c//dtd html 4.01//en"> <html lang="en"> <head>     <script type="text/javascript" src="static/script.js"></script> </head> <body>   <!-- content --> </body> </html> 

can see i'm missing? i'm having trouble understanding why won't see javascript.

update:

application: test version: 1 runtime: python27 api_version: 1 threadsafe: true  handlers:  - url: /   static_files: static/test.html   upload: static/test.html  - url: /static   static_dir: static 

this fixes it. second handle picks javascript (and else in static, think)


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -