GAE Python Dev Server won't serve static assets on Windows - MIME type error

25 views
Skip to first unread message

Russ King

unread,
Jul 25, 2014, 6:21:14 PM7/25/14
to web...@googlegroups.com
It appears that this issue will affect web2py on windows development and basically all the css files get ignored so its rather obvious its a problem:


and putting the stuff below into the top of the handlers section of app.yaml does appear to fix it - however I don't fully understand these sections and whether a proper correction should be included in the example app.yaml or if you just leave and expect future version of the app engine to sort it out.  If someone that does could just post a recommended app.yaml to overcome the problem that would be great.

Regards
Russ


- url: /(.+?)/static/css/(.+)
  static_files: applications/\1/static/css/\2
  mime_type: text/css
  upload: applications/(.+?)/static/css/(.+)
  secure: optional

- url: /(.+?)/static/images/(.+)
  static_files: applications/\1/static/images/\2
  mime_type: image/png
  upload: applications/(.+?)/static/css/(.+)
  secure: optional

Massimo Di Pierro

unread,
Jul 27, 2014, 12:19:27 PM7/27/14
to web...@googlegroups.com
This appears to be a bug in the windows SDK:


Your workaround only works for the welcome static folder structure but it is not general.

James Awford

unread,
Jul 27, 2014, 1:09:14 PM7/27/14
to web...@googlegroups.com
if using Python 2.7.7 then it is probably the mime type regression, move to 2.7.8 or backwards.

Russ King

unread,
Jul 27, 2014, 6:13:08 PM7/27/14
to web...@googlegroups.com
Many thanks python 2.7.8 fixed as you suggested.

Russ
Reply all
Reply to author
Forward
0 new messages