tomchristie/flask-api — pull request #18 by johnmee (2014-04-01 05:46:02+00:00)
Title: Fix javascript 404 errors

It appears the static directories were restructured and the location of the js files was overlooked...

Before:
* Running on http://127.0.0.1:5000/
* Restarting with reloader
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/css/bootstrap.min.css HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/css/bootstrap-tweaks.css HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/css/prettify.css HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/css/default.css HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/rest_framework/js/jquery-1.8.1-min.js HTTP/1.1" 404 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/rest_framework/js/bootstrap.min.js HTTP/1.1" 404 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/rest_framework/js/prettify-min.js HTTP/1.1" 404 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/rest_framework/js/default.js HTTP/1.1" 404 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /flask-api/static/img/grid.png HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:23] "GET /favicon.ico HTTP/1.1" 404 -

After:
127.0.0.1 - - [01/Apr/2014 16:36:53] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:53] "GET /flask-api/static/css/bootstrap.min.css HTTP/1.1" 304 -
127.0.0.1 - - [01/Apr/2014 16:36:54] "GET /flask-api/static/css/bootstrap-tweaks.css HTTP/1.1" 304 -
127.0.0.1 - - [01/Apr/2014 16:36:54] "GET /flask-api/static/css/prettify.css HTTP/1.1" 304 -
127.0.0.1 - - [01/Apr/2014 16:36:54] "GET /flask-api/static/css/default.css HTTP/1.1" 304 -
127.0.0.1 - - [01/Apr/2014 16:36:54] "GET /flask-api/static/js/jquery-1.8.1-min.js HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:54] "GET /flask-api/static/js/bootstrap.min.js HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:54] "GET /flask-api/static/js/prettify-min.js HTTP/1.1" 200 -
127.0.0.1 - - [01/Apr/2014 16:36:54] "GET /flask-api/static/js/default.js HTTP/1.1" 200 -