Skip to main content

Easy to add static files

Project description

fastack-staticfiles

Easy to add static files

Usage

pip install fastack-staticfiles

Add the plugin to your project configuration

PLUGINS = [
    "fastack_staticfiles",
    ...
]

Plugin configuration example

STATICFILES = [
    (
        "/static",
        "static",
        {"directory": "assets", "packages": [], "html": False, "check_dir": True},
    )
]

Configuration format like this (path: str, name: str, options: dict) The options here will be passed to starlette.staticfiles.StaticFiles.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastack-staticfiles-0.1.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

fastack_staticfiles-0.1.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page