pythondjangotinymcedjango-filebrowser

Django Tinymce file manager


I need a file manager for Django Tinymce.

I have tried Django filebrowser, but I can't get it to work. It shows a button next to the "Image URL" feld, but when I click it nothing shows up. How do it make it work?

Or... is there a better alternative?

Kind Regards,

Marian


Solution

  • 2 Marian:

    Module for integration TinyMCE/images plugin into a python project. For Django & Image Manager 1.1 beta1.

    Installation

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Copy tinymce folder to your Django project root folder.

    Add to main urls.py these strings:

    (r'^static/js/tiny_mce/plugins/images/connector/python/', include('tinymce.images.urls')),
    

    'static/js/tiny_mce' should be changed to your TinyMCE url.

    If you work with development server, these lines should be added:

    (r'^static/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'D:\dev\djcode\mysite\media'}),
    
    (r'^uploads/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': 'D:\dev\djcode\mysite\uploads'}),
    

    'D:\dev\djcode\mysite' should be changed to absolute path of your Django project folder.

    Problems

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    1. Multiple files upload doesn't work because flash doesn't send COOKIES. Django work with sessions through cookies by default. So we are waiting for flash module fixes.

    2. As for now - only in English.