I am going through the various Google AppEngine tutorials sometimes, and I just noticed something odd in a StackOverflow question about favicon.ico – specifically this question: favicon.ico "not found error" in app engine
– url: /favicon.ico
static_files: media/img/favicon.ico
upload: media/img/favicon.ico– url: /robots.txt
static_files: media/robots.txt
upload: media/robots.txt
All of the posters included an “upload:” line in their app.yaml definitions The application appears to work the same with or without the upload: line, and I have not seen any mention of it in the official documentation.
Where is it used, or what difference does it make if this line is included or not?
It’s documented over here: https://developers.google.com/appengine/docs/python/config/appconfig#Static_File_Pattern_Handlers. It’s basically a regular expression that identifies the files handled by the mapper. It’s required for static file handlers.