This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A Django app that wraps Filemanager from Core Five Labs, adding lots of Djangoy goodness

Installing

Install the package:

pip install django-filemanager

Add it to your installed apps:

INSTALLED_APPS += (
    'filemanager',
)

Set a few config options:

FILEMANAGER_UPLOAD_ROOT = MEDIA_ROOT + 'uploads/'
FILEMANAGER_UPLOAD_URL = MEDIA_URL + 'uploads/'

And include its URLs:

# in urls.py

urlpatterns += patterns("",
    (r"^filemanager/", include("filemanager.urls")),
)

Now, send a user to /filemanager/ and they will be able to manage file uploads on the server.

Configuring

The following options are supported:

FILEMANAGER_UPLOAD_URL

The URL that uploaded files will be served from. This should be the MEDIA_URL with an optional suffix. The suffix should be the same as that used in the FILEMANAGER_UPLOAD_ROOT in most instances. For example:

FILEMANAGER_UPLOAD_URL = MEDIA_URL + '/uploads/'
FILEMANAGER_UPLOAD_ROOT

The directory that uploaded files should be saved to. This should be the MEDIA_ROOT with an optional suffix. The suffix should be the same as that used in the FILEMANAGER_UPLOAD_URL in most instances. For example:

FILEMANAGER_UPLOAD_ROOT = MEDIA_ROOT + '/uploads/'
FILEMANAGER_AUTH_CALLBACK

Either a callable, or a dotted Python import path to a callable, that checks if a user is authorised to use the Filemanager. Three default callbacks are supplied:

  • 'filemanager.auth.allow_all': Allow all users to use the filemanager.
  • 'filemanager.auth.require_staff': Only allow staff members (users with the staff attribute).
  • 'filemanager.auth.require_superuser': Only allow superusers (users with the superuser attribute).

The default is to only allow staff members.

If you want to write your own, it must be a callable that takes a Request object and returns a boolean:

# in myapp.auth
def check_filemanager_auth(request):
    return request.user.has_perm('...'):

# in settings.py
FILEMANAGER_AUTH_CALLBACK = 'myapp.auth.check_filemanager_auth'
Release History

Release History

0.6.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.5.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-filemanager-tjh-0.6.0.tar.gz (772.3 kB) Copy SHA256 Checksum SHA256 Source Feb 8, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting