Well i found the problem. Very silly. Silly windows user.
filebrowser-safe get_directory() picks up the directory from settings.py or the default 'uploads/' and it's as simple as that it seams. Because for it to work on windows the path needs to be 'uploads\' A backslash. That's it. So i just added this: FILEBROWSER_DIRECTORY = 'uploads\\' To my local_settings.py and now we're good. Hope this helps some people. On Saturday, February 10, 2018 at 7:12:02 PM UTC, Simon Bradley wrote: > > Yo! > > Does anyone have any idea about this? Googling it seems to suggest it has > lingered for several years. It's a real annoyance because overall i really > like mezzanine and have developed a couple of sites with it now. I'm also > using windows 10 and everything else works great. > > Would be great if i had any kind of workaround for this. > > Anyone any idea? > > Anyone at all? > > I mean i spent a fair amount of time fiddling with it. Looking here: > https://docs.python.org/3/library/os.html > > It says this: > Although Windows supports chmod() > <https://docs.python.org/3/library/os.html#os.chmod>, you can only set > the file’s read-only flag with it (via the stat.S_IWRITE and > stat.S_IREADconstants > or a corresponding integer value). All other bits are ignored. > > Now i'm not really all that knowledgeable in this area but is that saying > that because Mezzanine uses chmod that you can't actually change the file > permissions on windows through mezzanine? > > If so could there be another way? Maybe changing the file permissions in > windows explorer somehow? > > Welcome a discussion here folks. I know someone out there knows more about > this than i do. In fact i suspect their number may be legion. > > > > > On Wednesday, November 29, 2017 at 8:42:17 PM UTC, Alexander Yang wrote: >> >> Hi. I'm trying Mezzanine on Windows 10 and facing this same issue. I >> can't delete images from the media library in the admin interface. Same >> error message. Did you manage to solve this? >> >> Thanks, >> >> Alex >> >> >> On Friday, 27 March 2015 02:41:22 UTC+1, Wan Hsin Mao wrote: >>> >>> I'm using the newest version of Mezzanine as my website CMS. There is >>> always "An error occurred" message after I click the trash can icon. >>> Is there any way to find out what's going wrong or anything suggested that >>> I can check to solve this error? >>> >>> p.s. I just want to delete the .ppt file in admin page. >>> >> -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
