Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Use django-filebrowser without Grappelli
JavaScript Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
filebrowser_admin_theme
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.md
requirements-dev.txt
runtests.py
setup.py

README.md

django-filebrowser-admin-theme

Build Status

Overrides django-filebrowser templates to remove Grappelli dependency and use Django's default Admin css.

Installation

Requires

  • Django 1.4
  • django-filebrowser 3.5
  • PIL
$ pip install PIL
$ python setup.py install

Just add filebrowser_admin_theme to on your settings.py before filebrowser:

INSTALLED_APPS = (
    ...
    'filebrowser_admin_theme',
    'filebrowser',
    'django.contrib.admin',
)

and follow the filebrowser docs

TinyMCE integration

Grappelli comes with TinyMCE but since we are not using it this app bundles a version of TinyMCE.

Add the necessary javascripts to your ModelAdmin definition (see ModelAdmin Media definitions):

class Media:
    js = [
        '/static/filebrowser_admin_theme/tinymce/jscripts/tiny_mce/tiny_mce.js',
        '/static/filebrowser_admin_theme/js/tiny_mce_setup.js',
    ]

you can copy the file tiny_mce_setup.js to your project and modify it as you wish.

And change the TinyMCE url for filebrowser on your settings.py

FILEBROWSER_URL_TINYMCE = '/static/filebrowser_admin_theme/tinymce/jscripts/tiny_mce/'  # don't forget the trailing slash

Run tests

Install test dependencies:

$ python setup.py develop
$ pip install -r requirements-dev.txt

Run tests

$ python runtests.py
Something went wrong with that request. Please try again.