Skip to content

File and Image Management Application for django. NOTICE: django-filer 0.8.2 does not work correctly with easy-thumbnails 1.0-alpha-17. please use 1.0-alpha-16

License

Notifications You must be signed in to change notification settings

CivComs/django-filer

This branch is 2230 commits behind django-cms/django-filer:master.

Folders and files

NameName
Last commit message
Last commit date
May 24, 2011
May 30, 2011
Apr 29, 2011
Apr 8, 2011
Nov 3, 2009
May 12, 2011
Mar 14, 2011
Sep 20, 2009
May 29, 2011
Apr 30, 2011
Apr 17, 2011
May 29, 2011

Repository files navigation

django-filer

A file management application for django that makes handling of files and images a breeze.

Documentation: http://django-filer.readthedocs.org/en/latest/index.html

Wiki: https://github.com/stefanfoulis/django-filer/wiki

Dependencies

Installation

To get started using django-filer simply install it with pip:

$ pip install django-filer

Add "filer" to your project's INSTALLED_APPS setting and run syncdb (or migrate if you're using South).

Configuration

django-filer supports permissions on files. They can be enabled or disabled. Files with disabled permissions are your regular world readable files in MEDIA_ROOT. Files with permissions are a other case however. To be able to check permissions on the file downloads a special view is used and they are saved in a separate location (in a directory called smedia next to MEDIA_ROOT by default).

filer.server.urls needs to be included in the root urls.py:

urlpatterns += patterns('',
    url(r'^', include('filer.server.urls')),
)

By default files with permissions are served directly by django. That is acceptable in a development environment, but very bad for performance in production. See the docs on how to serve files more efficiently.

For automatic subject location aware cropping of images replace easy_thumbnails.processors.scale_and_crop with filer.thumbnail_processors.scale_and_crop_with_subject_location in the THUMBNAIL_PROCESSORS setting:

THUMBNAIL_PROCESSORS = (
    'easy_thumbnails.processors.colorspace',
    'easy_thumbnails.processors.autocrop',
    #'easy_thumbnails.processors.scale_and_crop',
    'filer.thumbnail_processors.scale_and_crop_with_subject_location',
    'easy_thumbnails.processors.filters',
)

About

File and Image Management Application for django. NOTICE: django-filer 0.8.2 does not work correctly with easy-thumbnails 1.0-alpha-17. please use 1.0-alpha-16

Resources

License

Stars

Watchers

Forks

Packages

No packages published