<p dir="auto">The option <code class="notranslate">static_folder</code> for blueprints only works correctly when the blueprint has been registered with a <code class="notranslate">url_prefix</code>, otherwise the application's default static URL takes precedence.</p>
<p dir="auto">There is nothing wrong in that behavior, but it is not documented. It would be nice to have that fact mentioned at <a href="http://flask.pocoo.org/docs/blueprints/#static-files" rel="nofollow">http://flask.pocoo.org/docs/blueprints/#static-files</a> and/or <a href="http://flask.pocoo.org/docs/api/#blueprint-objects" rel="nofollow">http://flask.pocoo.org/docs/api/#blueprint-objects</a></p>
<p dir="auto">Hi,<br>
I've encountered a strange bug while working with Flask. When I have two modules (say 'frontend' and 'admin') static files aren't found in frontend module. Admin module is url_prefixed with '/admin' and everything is fine with it.</p>
<p dir="auto">The only workaround I found was to add a /static route in frontend module and serve files manually.</p>
<p dir="auto">I've created a simple demo app to show the bug. It's available here: <a href="https://github.com/tomekwojcik/Flask-Module-Static-Files">https://github.com/tomekwojcik/Flask-Module-Static-Files</a></p>
<p dir="auto">Best ragards.</p>