Hi. I always have this line in every request: ... "GET /favicon.ico HTTP/1.1" 404 - Since all my static media is served from /static/ what can I do to solve this 404? Regards, Thomas.
Hi guys, I made new favicon, you can check it here. https://github.com/mitsuhiko/flask/pull/476 Alex Vykalyuk
Merged. -- Kenneth Reitz On Wednesday, April 4, 2012 at 2:27 AM, Alex Vikalyuk wrote: > Hi guys, > > I made new favicon, you can check it here. > https://github.com/mitsuhiko/flask/pull/476 > > Alex Vykalyuk
Add a favicon to your static folder and serve that instead. On 18 Oct 2010 07:36, "Thomas Bilk" <thomasbilk@gmail.com> wrote: Hi. I always have this line in every request: ... "GET /favicon.ico HTTP/1.1" 404 - Since all my static media is served from /static/ what can I do to solve this 404? Regards, Thomas.
But how? If I serve it from static then the url would be /static/favicon.ico and not /favicon.ico. Is there a trick for that?
<link rel="shortcut icon" href="{{ url_for('.static',
filename='favicon.ico') }}" />
On 18 October 2010 08:09, Thomas Bilk <thomasbilk@gmail.com> wrote:
> But how?
> If I serve it from static then the url would be /static/favicon.ico and not
> /favicon.ico.
> Is there a trick for that?
@app.route("/favicon.ico")
def favicon():
return app.send_static_file("favicon.ico")
how about this?
2010/10/18 Thomas Bilk <thomasbilk@gmail.com>
> But how?
> If I serve it from static then the url would be /static/favicon.ico and not
> /favicon.ico.
> Is there a trick for that?
>
--
*Lee Heung-sub
Mobile: +82-10-3215-2380
Site: http://sublee.kr/
GitHub: http://github.com/sublee
*