I have done a test with glyphicons-halflings-regular.ttf from the Bootstrap project with the same app.yaml handler that you use (save for the indentation change as per the comments) and can verify that it works as expected:
This leads me to believe that you may using an older version of the GAE SDK (I use 1.8.8) or something else is wrong with your installation.
You can try this: appcfg.py
uses python's mimetypes
module to guess the type from the file extension so in any case, you should be able to solve the issue by adding the application/x-font-ttf
mime type to your OS.
You're on Windows so you need to edit your registry and add a application/x-font-ttf
key to HKEY_CLASSES_ROOT\MIME\Database\Content Type
and add a string value called Extension
with the value .ttf
under the new key.
Extended procedure for adding the mimetype to Windows
- Open the registry editor: Hit Winkey + R and type
regedit
, hit Enter - Navigate through the registry to the desired location: open
HKEY_CLASSES_ROOT
, inside it openMIME
, inside that openDatabase
and inside that openContent Type
. It's like a folder structure. - Right click on
Content Type
and selectNew > Key
, give it the nameapplication/x-font-ttf
. - Right click on the key you just created and select
New > String Value
. give it the nameExtension
. - Double click on the value you just created and assign it the Value data
.ttf
, hit OK. - Exit regedit and you're done!
Final none: I don't think it can be anything to do with the file itself, because the mimetypes
module uses only the file extension to work out the MIME type. Unless there is some crazy unprintable character in the filename. You could try using the glyphicons-halflings-regular font I linked to to eliminate this possibility.