> It really is necessary for my project that users (non-administrators) can > upload images when they use richtextfield, I am creating a platform to > publish low-cost science experiments and I need registered users could > easily contribute to the platform.
I would like to have a separate media library for each user, is it possible > to do this on mezzanine? El domingo, 4 de junio de 2017, 16:18:42 (UTC-5), Eduardo Rivas escribió: > > Hmm, I would assume that the media library is not going to work for non > admin users. You'll have to implement file uploads yourself. I would start > by checking how Mezzanine handles file uploads in TinyMCE and emulating > that without the admin checks. > > But first make sure you want non admin users uploading files to your > server. I would recommend implementing a regular file field in the form and > using the rich text editor for text only. > > On Jun 4, 2017 3:12 PM, "Diego Castro" <[email protected] <javascript:>> > wrote: > >> Thank you for your answer Eduardo. No, I had not included >> {{form.media}}. Now the richtextfield is displayed correctly, thank you >> very much. But there is a problem, if I want to load an image the following >> error appears >> >> Page not found (404) >> Request Method: GET >> Request URL: http://127.0.0.1:8000/fisica/undefined/?pop=5&type=image >> Raised by: mezzanine.pages.views.page >> >> I am putting in the template the following: >> >> <form method="POST" enctype="multipart/form-data"> >> {% csrf_token %} >> {{ form.media }} >> {{ form.as_p }} >> <button type="submit" class="save btn btn-default">Crear</button> >> </form> >> >> I am doing something wrong? >> >> -- >> 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] <javascript:>. >> 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.
