Hey Achim, you can already upload large files with what is included in Mezzanine and those files aren't stored in the database, they are stored on disk in the MEDIA_ROOT directory. I do think that it passes through the WSGI stack so if that is a dealbreaker for you then it will require extra work. As far as restricting access to files I would take a look at https://github.com/johnsensible/django-sendfile. I've used that in a number of projects and does the trick for me.
On Sun, Jun 1, 2014 at 10:43 AM, Achim Domma <[email protected]> wrote: > Hi, > > I was looking for some Python-based CMS which could replace WordPress. > Somebody pointed me to Mezzanine and it looks very promissing. I wouldl > like to implement a system to provide additional content for participants > of seminars. So I would like to create a page per seminar and would like to > add files to those pages. Regarding this use case, I have some questions: > > - The files do not need any processing on the server: No calculation of > thumbnails, video encoding, ... but the files are rather big (50-250MB). I > would like to let Nginx take care of handling the files ( > http://wiki.nginx.org/HttpUploadModule), so the files are not going > through the uwsgi stack and will be stored in the file system instead of > the database. Is there already something like that, which I at least could > take as a starting point? > > - I would like to restrict access to the files via their containing page > object. So a user which was granted access to the seminar (-> page) should > also be allowed to access the files. That should be possible, but some > guidance to get started would be very appreciated. I have some basic > knowledge of Django, but I don't get yet whether this is handled on the > Django level or inside Mezzanine?! > > cheers, > Achim > > -- > 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. > -- 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.
