Flask-Collect -- Collect static files in Flask application
Project description
Flask-Collect is an extension for Flask that helps collecting static files.
Serving static files with Flask – bad idea for production, this tool will help you collect them in one command. It checks application and blueprints for static files and copy them to specific folder (saves related paths).
Docs are available at http://flask-collect.readthedocs.org/. Pull requests with documentation enhancements and/or fixes are awesome and most welcome.
Contents
Requirements
- python (2.6, 2.7, 3.3)
- Flask >= 0.10.1
Setup
Flask-Collect settings (default values):
# Target static dir COLLECT_STATIC_ROOT = <APP.ROOT_PATH>/static COLLECT_STORAGE = 'flask.ext.collect.storage.file'
Initialize Flask-Collect extenstion:
from flask.ext.collect import Collect ... collect = Collect() collect.init_app(app)
If you use Flask-Script, activate Flask-Collect commands:
from flask.ext.collect import Collect ... manager = Manager() ... collect = Collect() collect.init_app(app) collect.init_script(manager)
Bug tracker
If you have any suggestions, bug reports or annoyances please report them to the issue tracker at https://github.com/klen/Flask-Collect/issues
Contributing
Development of flask-collect happens at github: https://github.com/klen/Flask-Collect
License
Licensed under a BSD license.
Project details
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size & hash SHA256 hash help | File type | Python version | Upload date |
---|---|---|---|
Flask_Collect-1.1.2-py2.py3-none-any.whl (11.6 kB) Copy SHA256 hash SHA256 | Wheel | py2.py3 | |
Flask-Collect-1.1.2.tar.gz (7.8 kB) Copy SHA256 hash SHA256 | Source | None |