static file referenced by $ PYTHON_LIB when deploying is possible
file app.yaml
application: hello version: 1 runtime: python27 api_version: 1 threadsafe: true libraries: - name: django version: "1.3" handlers: - url: /admin/media static_dir: $PYTHON_LIB/lib/django_1_3/django/contrib/admin/media builtins: - django_wsgi: on
local log:
INFO 2012-04-03 02: 06: 19,200 dev_appserver.py:2884] "GET / admin / media / css / base.css HTTP / 1.1" 200 -
INFO 2012-04-03 02: 06: 19,207 dev_appserver.py:2884] "GET / admin / media / css / dashboard.css HTTP / 1.1" 200 -
INFO 2012-04-03 02: 06: 19,242 dev_appserver.py:2884] "GET / admin / media / img / admin / default-bg.gif HTTP / 1.1" 200 -
application for troubleshooting log errors:
2012-04-02 19: 17: 32.775 / admin / media / css / dashboard.css 404 6ms 0kb
- [02 / Apr / 2012: 19: 17: 32 -0700] "GET / admin / media / css / dashboard.css HTTP / 1.1" 404
No static file referenced by the handler was found: $ PYTHON_LIB / lib / django_1_3 / django / contrib / admin / media / css / dashboard.css
source share