google app engine - GAE can't access bootstrap folder -
this question has answer here:
i'm noob missing rudimentary. taking advice of senthil kumaran here, added bootstrap folder app.yaml, still can't reference resources. app.yaml looks like:
application: generacy version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /static static_dir: static - url: /.* script: blog.app - url: /bootstrap static_dir: bootstrap libraries: - name: jinja2 version: latest - name: pil version: "1.1.7"
and i'm referring bootstrap js using @ bottom:
<script src="bootstrap/assets/js/jquery.js"></script> <script src="bootstrap/dist/js/bootstrap.min.js"></script> <script src="bootstrap/assests/js/holder.js"></script>
but doesn't work. however, if put files in static folder, , refer them as:
<script src="static/jquery.js"></script> <script src="static/bootstrap.min.js"></script> <script src="static/holder.js"></script>
it work.
move static handler before wildcard .* handler. getting requests.
this duplicate of lot of questions.
Comments
Post a Comment