You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when minio server run on windows 10, when execute command python manage.py collectstatic -c, It can not remove already existing file. because the object_name contains \\ dobule backslash. replace \\ with \, the file can delete successfully. or override the method delete() of class MinioStaticStorage . as below shown.
class CustomMinioStaticStorage(MinioStaticStorage): def delete(self, name: str) -> None: name = name.replace('\\', '/') super().delete(name)
The text was updated successfully, but these errors were encountered:
when minio server run on windows 10, when execute command
python manage.py collectstatic -c
, It can not remove already existing file. because the object_name contains\\
dobule backslash. replace\\
with\
, the file can delete successfully. or override the methoddelete()
of classMinioStaticStorage
. as below shown.class CustomMinioStaticStorage(MinioStaticStorage): def delete(self, name: str) -> None: name = name.replace('\\', '/') super().delete(name)
The text was updated successfully, but these errors were encountered: