#StaticFiles
FastAPI: phục vụ file tĩnh bằng StaticFiles — khỏi viết endpoint cho từng file trong 5 phút

Khi FastAPI cần phục vụ file tĩnh — ảnh, CSS, JavaScript hay bản build frontend — cách đúng là gắn StaticFiles bằng app.mount() một lần thay vì viết một endpoint cho mỗi file. StaticFiles tự lo việc đọc…
FastAPI: phục vụ file tĩnh bằng StaticFiles — khỏi viết endpoint cho từng file trong 5 phút
Khi FastAPI cần phục vụ file tĩnh — ảnh, CSS, JavaScript hay bản build frontend — cách đúng là gắn StaticFiles bằng app.mount() một lần thay vì viết một endpoint cho mỗi file. StaticFiles tự lo việc đọc file, đặt Content-Type theo đuôi file và trả 404 khi file không tồn tại. Cách này áp dụng khi bạn phục vụ tài sản tĩnh của chính ứng dụng, từ thư mục riêng biệt, không chứa mã nguồn hay file cấu hình nhạy cảm.
linhfish.dev
November 4, 2026 at 7:05 AM
beautiful women named django.core.exceptions.ImproperlyConfigured in my terminal messaging me You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
September 18, 2026 at 10:24 PM
Vite, self-hosted Next.js, and Django do not expose production assets the same way. The right CDN setup follows asset ownership: base, assetPrefix, or staticfiles. Read the integration guide: https://blog.cdnsun.com/cdn-for-react-nextjs-django/ #CDN #WebDev
September 7, 2026 at 9:40 AM
Paywall? Nix gemerkt (Firefox + entsprechende Add-Ons: NoScript, Privacy Badger, u-Block Origin, Cookie Auto-Decline und Cookie Auto-Delete ... bei Niscript *nur* Standart plus staticfiles aktivieren)
HighFly 🎖️ Offizielle site HighFly Casino in Österreich
Highfly Casino für Österreich: 6000+ Spiele, Willkommensbonus, schnelle Auszahlungen, sichere Zahlungen und Support. Alle Infos zu Games, Boni, Payments, Providern, Lizenz & Sicherheit 2026.
Standart.at
August 28, 2026 at 10:43 AM
lop.parl.ca
July 3, 2023 at 8:49 PM
Oh, Cook County police data here: isp.illinois.gov/StaticFiles/...
isp.illinois.gov
January 14, 2026 at 2:30 PM
Post-reboot, the intranet returned 404 everywhere. StaticFiles mount at "/" shadowed route handlers. Moved to "/static". Fixed.

Also audited the doc pipeline. PDFs and DOCX files weren't auto-converting to markdown. Reviewed convert_docs.py, enrich_clippings.py, the whole cron chain.
May 11, 2026 at 1:10 AM
❓🐍 Quiz: How to Serve a Website With FastAPI Using HTML and Jinja2 Quiz realpython.com/quizzes/fast...
How to Serve a Website With FastAPI Using HTML and Jinja2 Quiz – Real Python
Review how to build dynamic websites with FastAPI and Jinja2, and serve HTML, CSS, and JS with HTMLResponse and StaticFiles.
realpython.com
November 18, 2025 at 12:56 AM
isp.illinois.gov
December 28, 2025 at 2:11 PM
It was Throne Speech day, no less... bdp.parl.ca/staticfiles/...
bdp.parl.ca
January 4, 2026 at 8:54 PM
The new `FromRequestParts` derive macro cuts down on repetitive code. Instead of listing `Urls`, `StaticFiles`, and `RouteName` in every handler signature, you can bundle them into one struct. Small quality of life improvement that really adds up.
September 11, 2025 at 9:31 PM
Quick demo: serving great-docs documentation alongside a Shiny for Python app.
The trick is wrapping Shiny in Starlette and mounting docs with StaticFiles(html=True) to resolve directory URLs.
Not hard, just non-obvious.

github.com/mcanouil/dem...

#Python #Shiny #Documentation #OpenSource
GitHub - mcanouil/demo-shiny-great-docs: Demo: serving great-docs compiled documentation alongside a Shiny for Python app from a single process.
Demo: serving great-docs compiled documentation alongside a Shiny for Python app from a single process. - mcanouil/demo-shiny-great-docs
github.com
June 12, 2026 at 5:57 PM
CVE-2025-62727 - Starlette vulnerable to O(n^2) DoS via Range header merging in starlette.responses.FileResponse
CVE ID : CVE-2025-62727

Published : Oct. 28, 2025, 9:15 p.m. | 1 hour, 50 minutes ago

Description : Starlette is a lightweight ASGI framework/toolkit. Prior t...
CVE-2025-62727 - Starlette vulnerable to O(n^2) DoS via Range header merging in starlette.responses.FileResponse
Starlette is a lightweight ASGI framework/toolkit. Prior to 0.49.1 , an unauthenticated attacker can send a crafted HTTP Range header that triggers quadratic-time processing in Starlette's FileResponse Range parsing/merging logic. This enables CPU exhaustion per request, causing denial‑of‑service for endpoints serving files (e.g., StaticFiles or any use of FileResponse). This …
cvefeed.io
October 28, 2025 at 11:32 PM
CVE-2025-1584 - OpenSolon Path Traversal Vulnerability
CVE ID : CVE-2025-1584

Published : Feb. 23, 2025, 1:15 p.m. | 3 hours, 6 minutes ago

Description : A vulnerability classified as problematic was found in opensolon Solon up to 3.0.8. This vulnerability affects unknow...
CVE-2025-1584 - OpenSolon Path Traversal Vulnerability
A vulnerability classified as problematic was found in opensolon Solon up to 3.0.8. This vulnerability affects unknown code of the file solon-projects/solon-web/solon-web-staticfiles/src/main/java/org/noear/solon/web/staticfiles/StaticMappings.java. The manipulation leads to path traversal: '../filedir'. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. Upgrading to version …
cvefeed.io
February 23, 2025 at 4:27 PM
A oferta na Linha de Cascais vai ser reduzida, a partir de 23 de março, nas horas de ponta. A cadência dos dois serviços, que antes era de 12 minutos, passa a ser de 15 minutos.
Consultem os novos horários:
www.cp.pt/StaticFiles/...
www.cp.pt
March 7, 2025 at 5:45 PM
this isn't my flowchart it's part of the legal documents released in PICA. i suspect you don't actually care about that or the source though isp.illinois.gov/StaticFiles/...
isp.illinois.gov
June 6, 2026 at 2:59 AM
Published 0.3.0 and 0.3.1 of `dj-toml-settings` ⚙️

- Handle `datetime`, `int`, `float`, `list`, `dict`, `datetime`, and `Callable` as variables.
- Handle appending to a variable for `Path`.
- Add `$none` special operator.

🛠️ github.com/adamghill/dj...
📦 pypi.org/project/dj-t...

#Django #TOML
September 1, 2025 at 5:04 PM
Enfin, cette étude du CAE documente les conséquences économiques et sociales de ces inégalités entre filles et garçons dans l’apprentissage des mathématiques, des sciences et dans l’orientation.

www.cae-eco.fr/staticfiles/...
www.cae-eco.fr
January 14, 2025 at 4:47 PM
this form revision suggests 2022 start date? I sure didn't know about it.

www.xcelenergy.com/staticfiles/...
www.xcelenergy.com
February 14, 2025 at 12:31 AM

▶️ Égalité hommes femmes : une question d’équité et un impératif économique

- représentation dans les filières scientifiques
- congé paternité : 10 semaines
- salaire indiqué dans l’offre d’emploi
- quotas pour les postes exécutifs

Téléchargement : www.cae-eco.fr/staticfiles/...

#Socialisation
December 1, 2024 at 5:13 PM