fixed image path construction
This commit is contained in:
1 parent
0a86d2bbea
commit
8f520f9a6a
9 files changed
+784
-11
No files matched your search
@@ -29,7 +29,7 @@ else:
|
||||
|
||||
|
||||
def image_static_url(path: Path) -> str:
|
||||
return settings.BASE_PATH + static(
|
||||
return static(
|
||||
f"/{path.relative_to(Path(settings.STATIC_ROOT))}"
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user