Google App Engine Error For /favicon.ico
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why do I have favicon.ico error in my GAE dashboard? up vote 2 down vote favorite 1 I have the following in my app.yaml (python is used): handlers: - url: /ico/ static_dir: templates/ico So, favicon.ico is located as templates\ico\favicon.ico. HTML files (also located at templates folder, but used as templates from the main app) refer to this file as or (depends on final URL) And favicon is displayed. Should I define it additionally as handlers: - url: /favicon\.ico static_files: templates/ico/favicon.ico upload: templates/ico/favicon\.ico What is the reason, if so? google-app-engine yaml favicon share|improve this question asked Oct 3 '12 at 6:07 LA_ 6,2872899208 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted Yes, you should define it additionally as you mention (as a handler at the root level). My understanding is that the favicon is traditionally served from the root directory of a site in general (even outside of App Engine), and therefore the path /favicon.ico will be called by the browser when loading the site (I'm not an expert, so take this with a grain of salt). Therefore in order to prevent that error, you must provide a handler for that specific path that serves your favicon. share|improve this answer answered Oct 3 '12 at 6:23 RocketDonkey 20.6k44267 You can even see this behavior by going to most sites and adding the favicon.ico path to them like stackoverflow.com/favicon.ico –MCeley Oct 3 '12 at 12:31 Very cool - thanks for pointing that out! –RocketDonkey Oct 4 '12 at 4:14 add a comment| Your Answer draft saved d
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions http://stackoverflow.com/questions/12702718/why-do-i-have-favicon-ico-error-in-my-gae-dashboard Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up how to resolve favicon.ico error in google http://stackoverflow.com/questions/19233542/how-to-resolve-favicon-ico-error-in-google-appengine appengine up vote 0 down vote favorite I have a very basic jinja template, which works OK in displaying htm, but the log complains about favicon.ico even though I have it in both / and /templates. what did I do wrong? also, am I getting an error in my css load? import jinja2 import os import logging import webapp2 JINJA_ENVIRONMENT = jinja2.Environment( loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), extensions=['jinja2.ext.autoescape']) class MainHandler(webapp2.RequestHandler): def get(self): path = self.request.path logging.info('from main %s', path) if (path=='/'): templa=JINJA_ENVIRONMENT.get_template('/templates/index.htm') else: templa=JINJA_ENVIRONMENT.get_template(path) try: self.response.write(templa.render({})) except: self.response.out.write('Error - unable to find %s' % path) app = webapp2.WSGIApplication([('/.*',MainHandler)], debug=True) ------ showing only error INFO 2013-10-07 19:44:53,500 index4.py:44] from main /templates/topics.htm INFO 2013-10-07 19:44:53,516 dev_appserver.py:3103] "GET /templates/topics.htm HTTP/1.1" 200 - INFO 2013-10-07 19:44:53,532 dev_appserver.py:3103] "GET /static/glike.css HTTP/1.1" 304 - INFO 2013-10-07 19:44:53,609 index4.py:44] from main /favico
Support Partners Console https://cloud.google.com/appengine/kb/ Google App Engine DocsStandard EnvironmentAbout the Standard http://movetogae.blogspot.com/2008/06/favicon-with-gae.html EnvironmentPython 2.7Java 7PHPGoFlexible EnvironmentAbout the Flexible EnvironmentPythonJavaNode.jsGoRubyCustom RuntimesResourcesChoosing an EnvironmentInstall the SDK for App EnginePricing and QuotasPricingQuotasArticlesOverviewDesigning for ScaleOptimizing Spring FrameworkJPA facets & Cloud SQLDatastore Index Selection google app & Advanced SearchWorkflows with FantasmLife of a Datastore WriteStoring Entities & IndexesHandling Datastore ErrorsDeferred LibraryXMPP ServiceEffective PolyModelAvoiding Datastore ContentionBest Practices for App Engine MemcacheEffective MemcacheSharding CountersModeling Entity RelationshipsUpdating Your Model's SchemaTransaction IsolationUsing Cloud Logging in google app engine App Engine AppsMoving to the Google Cloud Platform ConsoleDealing with DeadlineExceededErrorsScheduled BackupsSupportSubmit Product IssueContact Google SupportCommunity SupportApp Engine FAQDeprecationFeature DeprecationDjango Packaged Libraries 1.2, 1.3 Support TurndownJava 6 Runtime Support TurndownVirtual IP (VIP) Transition to Server Name Indication (SNI)Commercial Launch ChecklistApp Engine Services SummaryGlossaryService Level AgreementService Level Agreement Error Rates Google App Engine DocsStandard EnvironmentAbout the Standard EnvironmentPython 2.7Java 7PHPGoFlexible EnvironmentAbout the Flexible EnvironmentPythonJavaNode.jsGoRubyCustom RuntimesResourcesChoosing an EnvironmentInstall the SDK for App EnginePricing and QuotasPricingQuotasArticlesOverviewDesigning for ScaleOptimizing Spring FrameworkJPA facets & Cloud SQLDatastore Index Selection & Advanced SearchWorkflows with FantasmLife of a Datastore WriteStoring Entities & IndexesHandling Datastore ErrorsDeferred LibraryXMPP ServiceEffective PolyModelAvoiding Datastore
While creating any new web application the one thing which I look at the most is the logs. The logs tend to give me a good idea of what is happening and in my case what I am doing wrong.One error message which I am getting a lot of is;INFO 2008-06-09 17:14:37,313 dev_appserver.py] "GET /favicon.ico HTTP/1.1" 404 -This means a favicon is missing. So I went to the google application website and picked up the favicon and dumped it in my application directory.http://appengine.google.com/favicon.icoI also needed to add to the file app.yaml.- url: /favicon.ico static_files: static/images/favicon.ico upload: static/images/favicon.icoThis option allows any images to be automatically shown without having to be processed any further.A problem which I have found by doing this is the mime_type really needs to be set to something else, but it doesn't seem to work.You will need to ensure that this statement is placed before others that my overwrite it, so check the order in the yaml fileMore about this can be read here;http://code.google.com/appengine/docs/configuringanapp.html Posted by Wally at 11:52 PM 1 comment: Blog Block Black said... here is my yaml--handlers:- url: /favicon.ico static_files: images/favicon.ico upload: images/favicon.ico mime_type: image - url: .* script: guestbook.pyIt does show my favicon.ico. Why? April 1, 2009 at 6:39 PM Post a Comment Newer Post Home Subscribe to: Post Comments (Atom) Blog Archive ▼ 2008 (6) ► August (1) ► July (2) ▼ June (3) Django includes Filenames and case sensitivity. Favicon with gae