Files
ad/molodetz/assets.py
T

9 lines
253 B
Python
Raw Normal View History

2026-10-05 09:36:20 +02:00
# retoor <retoor@molodetz.nl>
from molodetz import config
def static_url(path):
if not path.startswith("/static/") or path.startswith("/static/uploads/"):
return path
return f"/static/v{config.STATIC_VERSION}/{path[len('/static/'):]}"