Coder Social home page Coder Social logo

pombredanne / django-filemanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vsoch/django-filemanager

0.0 1.0 1.0 162 KB

A simple and standalone file manager and browser for django projects.

License: Other

Python 4.10% CSS 0.14% JavaScript 92.15% HTML 3.61%

django-filemanager's Introduction

Django Filemanager

A simple and standalone file manager and browser for django projects. Supports multiple instances which can be used within the admin area or for the frontend as well. Its a django app and can be used in multiple projects.

Make sure to have base.html file and add two blocks head and body as described in 6th step. And in your project make sure to have uploads folder inside the MEDIA_ROOT path.

Key features

Standalone file browser and manager No external dependencies except django Create Directory to the current path Upload files to the current path Download files into zip Delete any file or directory Rename them Search on the basis of filter

Quick start

  1. Download it using pip:

    pip install django-webfilemanager
    
  2. Add filemanager to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'filemanager',
    ]
    
  3. Include the filemanager URLconf in your project urls.py like this:

    url(r'^your-url/', include('filemanager.urls', namespace='filemanager')),
    
  4. Add MEDIA_URL and MEDIA_ROOT to the settings.

  5. Make sure the base folder defined in your settings for filemanager does exist. By default it is located at MEDIA_ROOT/uploads.

  6. If you have 'base.html' in your project then add:

    <html>
            <head>
                    {% block head%}{% endblock %}
            </head>
            <body>
                    {% block content %}{% endblock %}
            </body>
    </html>
    
  7. If you have problem accessing media files, make sure to these lines only in Debug mode at the end of the URLConf (urls.py) file:

    if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    

django-filemanager's People

Contributors

rameezarshad avatar vsoch avatar

Watchers

 avatar

Forkers

pluckysoft

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.