Serve production static files with Flask.
Project description
Serve production static files with Flask. A Flask version of DJ-Static.
Usage
$ pip install fl-static
Configure your static assets in:
from flask import Flask app = Flask(__name__) app.config.update( STATIC_ROOT='staticfiles', STATIC_URL='/static/', )
Then, use the Cling middleware:
from fl_static import Cling app = Cling(app)
You can use Werkzeug’s local development server:
app.run()
Jinja2 Magic
fl_static.Jinja2Magic extends static.StringMagic providing Jinja2 template support.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fl-static-0.0.1.tar.gz
(2.1 kB
view details)
File details
Details for the file fl-static-0.0.1.tar.gz
.
File metadata
- Download URL: fl-static-0.0.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78831eb2661d3a7073a6a13d56b6acb804300c5d6ddf372529c840c31543fa84 |
|
MD5 | b54c971e554f7245fffdc60e58d917f1 |
|
BLAKE2b-256 | 75909c0720c2e39410be1cb5dd03c0f368eefdc76674f0578309365f7517da69 |