javascript - serving static files on GAE -
this question has answer here:
- serve static file using app engine 4 answers
- serving static html in google app engine python 4 answers
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
Post a Comment