https://github.com/fastack-dev/fastack-staticfiles
https://github.com/fastack-dev/fastack-staticfiles
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fastack-dev/fastack-staticfiles
- Owner: fastack-dev
- License: mit
- Created: 2021-12-24T16:05:42.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T16:48:09.000Z (over 1 year ago)
- Last Synced: 2025-06-17T14:22:47.324Z (about 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastack-staticfiles
Easy to add static files
# Usage
```
pip install fastack-staticfiles
```
Add the plugin to your project configuration
```py
PLUGINS = [
"fastack_staticfiles",
...
]
```
Plugin configuration example
```py
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`.