Django web-based file explorer
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
templates
.gitignore
README.rst
__init__.py
admin.py
filesystem_explorer.py
models.py
tests.py
urls.py
views.py

README.rst

django-direxplorer -- http directory explorer for Django

Overview

The purpose of this program is to enable multiple file/directory transfer over http without the use of ftp sftp or other file transfer protocols. The functionality implemented by either transferring raw file content, archived file content or recursively archived directories.

Limitations

This application performs no caching, so the server could easily be DOSed meaning that file transfer is only allowed for registered users. The program implemented by first zipping all content in a file in /tmp directory and then sending it to the user, so be sure to enable ample timeout options on your upstream server, and have enough space in /tmp.

Installation

  1. Copy django-direxplorer in your existing django project
  2. In settings.py
    1. Add variable EXPLORER_URL="<yourpath>" this would declare base url for django-direxplorer to handle
    2. Add django-direxplorer to your INSTALLED_APPS tuple
    3. Make sure that you have the following apps enabled:
      • django.contrib.auth
      • django.contrib.contenttypes
      • django.contrib.admin
  3. In urs.py add the following lines
    1. An import statements
      from django.conf import settings
    2. A urlpattern
      (r'^%s/' % settings.EXPLORER_URL, include('django-direxplorer.urls')), (r'^accounts/login/$', 'django.contrib.auth.views.login'),
  4. Run python manage.py syncdb
  5. Go to admin interface -> Explorer Sites and add explorer site
    1. Web URL: url for each site i.e. http://django-site/<EXPLORER_URL>/<WEB_URL>
    2. Filesystem Path: a path on filesystem that will be accessed through web interface