Django Froala Editor

47 views
Skip to first unread message

Israel Akinoso

unread,
Feb 3, 2023, 7:00:32 AM2/3/23
to Django users
Please I need help on how to change the upload path of django froala editor. Possiby to Cloudinary 
Please I need help 🙏🙏

Steven Mapes

unread,
Feb 3, 2023, 9:30:12 AM2/3/23
to Django users
Easiest way will be to overload their default upload view.

If you look in the urls.py for the package it has two entries

path('image_upload/', views.image_upload, name='froala_editor_image_upload'),
path('file_upload/', views.file_upload, name='froala_editor_file_upload'),


Then create your own views doing what you want but serve them from the URL path that these would be on by default so that they are called instead.

Steven Mapes

unread,
Feb 3, 2023, 9:31:55 AM2/3/23
to Django users
Sorry hit send too soon. An alternative is to update your settings.py entry for FROALA_STORAGE_BACKEND to point to a different backend as per their docs https://github.com/froala/django-froala-editor#other-settings
Reply all
Reply to author
Forward
0 new messages