Giter Club home page Giter Club logo

django-direxplorer's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.