Routing static folder with module without url_prefix
- From:
- Mathieu Virbel
- Date:
- 2010-10-19 @ 15:46
Hi everyone,
I've tryed to follow the
http://flask.pocoo.org/docs/patterns/packages/#modules-and-resources
part, but got stuck on the static folder.
We have frontend and admin module, both have templates and static folder.
If we have a main like this :
app.register_module(frontend)
app.register_module(admin, url_prefix='/admin')
We are not able to get any files in frontend static directory, cause
of the default static rule added in the Flask.__init__.
If i remove the default rule, the frontend module rule will work, and
my files will be taken from the static directory of frontend module.
What is the proper fix ?
Mathieu