Replies: 4 comments 2 replies
-
Favicon can be served if you put it in the static dir and refer there. Does that fix it? |
Beta Was this translation helpful? Give feedback.
-
So, I could refer to the favicon in the html and using a tag, but I am also trying to have it respond at /favicon.ico which is where some applications / browsers look for the icon without reading the html source. I'd also like to build in some specific pages that are always there in my application when I extend this extension and use it locally. |
Beta Was this translation helpful? Give feedback.
-
Static files and template paths are two different things. But yeah, you could deploy favicon.ico in both / and /static. |
Beta Was this translation helpful? Give feedback.
-
According to documentation of Flask, you can set static_folder to an empty string in the Flask constructor to serve static files from / but I'm not sure if that interferes with how Bootstrap-Flask works. The use of mightblueprint work around it. See https://github.com/helloflask/bootstrap-flask/blob/master/flask_bootstrap/__init__.py#L62 But please try it and let us know. |
Beta Was this translation helpful? Give feedback.
-
Hi!
I am trying to use project as the basis for our flask projects, so I can place customizations in one spot, and can reuse them with all of our projects.
This seems to work but I am trying to add the /favicon.ico path above however I get the following error
I'm not sure what I am missing.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions