django-filebrowser

small problem with django-tinymce and django-filebrowser integration

白昼怎懂夜的黑 提交于 2020-01-05 04:38:13
问题 I am trying to integrate django-tinymce with django-filebrowser for my django admin site. Everything (almost) works fine. manage.py test filebrowser , works ok http://localhost:8000/admin/filebrowser/browse/ works, too however when I press the browse button on the windows popup of insert/edit image of tinymce button panel nothing happens. in my firefox debug window I get an error like this (when pressing browse ): f is undefined code: http://localhost:8000/static/js/tiny_mce/tiny_mce_src.js

what settings do i need to make django-filebrowser work with s3 storages?

我的未来我决定 提交于 2019-12-24 08:14:03
问题 I feel like I've tried just about everything here in getting static and user uploads folders to work with s3. At this point when I run collectstatic all the folders inside media end up inside static , even though I'm pretty sure I configured things for two folders to be created. I suspect it's something to do with django-filebrowser. It seems that they have made some settings for storages but for the life of me I can't figure out how to make them work: http://django-filebrowser.readthedocs

Django FileBrowser 400 Error

安稳与你 提交于 2019-12-13 00:15:54
问题 I'm getting a 400 error when trying to access the /admin/filebrowser/browse/ page. I followed the instructions as per https://django-filebrowser.readthedocs.org/en/3.5.2/quickstart.html and have my URLs and installed apps configured correctly. What I'm not too sure about are the media paths in settings.py; FILEBROWSER_DIRECTORY = os.path.join(BASE_DIR, '/ogencat/MEDIA/uploads') FILEBROWSER_MEDIA_ROOT = os.path.join(BASE_DIR, '/ogencat/MEDIA') FILEBROWSER_MEDIA_URL = '/MEDIA/' I have folder in

Django filebrowser, model specific directory parameter for FileBrowserField

◇◆丶佛笑我妖孽 提交于 2019-12-11 05:08:43
问题 Using django-filebrowser and the FileBrowserField I am attempting to assign the directory parameter based off a key in the model itself. So using a blog example, if I were saving photos for different posts, the photos would be in directories named after the blog id. So if the MEDIA_ROOT was /some/path/to/media/filebrowser_files/ I wish to dynamically assign the directory paramter to be MEDIA_ROOT+str(model_pk) At this point I have attempted to do something resembling the following, but do not