librelist archives

« back to archive

Favicon

Favicon

From:
Thomas Bilk
Date:
2010-10-18 @ 06:36
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.

Favicon

From:
Alex Vikalyuk
Date:
2012-04-04 @ 06:27
Hi guys,

I made new favicon, you can check it here.
https://github.com/mitsuhiko/flask/pull/476

Alex Vykalyuk

Re: [flask] Favicon

From:
Kenneth Reitz
Date:
2012-04-04 @ 06:28
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 

Re: [flask] Favicon

From:
danjac354@gmail.com
Date:
2010-10-18 @ 06:40
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.

Re: [flask] Favicon

From:
Thomas Bilk
Date:
2010-10-18 @ 07:09
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?

Re: [flask] Favicon

From:
danjac354@gmail.com
Date:
2010-10-18 @ 07:12
<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?

Re: [flask] Favicon

From:
Lee Heung-sub
Date:
2010-10-18 @ 07:11
@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
*