lantip / red-filebrowser-extensions

A cropping tool extension for django-filebrowser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Red File Browser Extensions

Crop FileBrowser is an extension to FileBrowser https://github.com/sehmaschine/django-filebrowser/` that allows you to use JCrop http://deepliquid.com/content/Jcrop.html to create custom crops for your image versions:

Requirements

Installation

python setup.py install

Open settings.py and add crop_filebrowser to your INSTALLED_APPS if you want access to the filebrowser management commands you should include it as well:

INSTALLED_APPS = (
    'grappelli',
    'crop_filebrowser',
    'filebrowser',
    'django.contrib.admin',
)

In your url.py import the default CropFileBrowser site:

from crop_filebrowser.sites import site and add the following URL-patterns (before any admin-urls):

urlpatterns = patterns('', url(r'^admin/filebrowser/', include(site.urls)), )

Lantip Notes

patched crop_filebrowser.sites to be able to work with filebrowser 3.5+

About

A cropping tool extension for django-filebrowser

License:MIT License


Languages

Language:JavaScript 88.8%Language:Python 9.6%Language:CSS 1.6%