Documentation - 1vank1n/browse1 GitHub Wiki

Browse1 - is simple filebrowser written for django-projects.

Example you may see here

Installation

Five simple steps:

1] clone/download repository and put browse1 in PYTHONPATH

the simplest is put browse1 in your django-project

2] add into settings.py:

INSTALLED_APPS = ( ... 'browse1', ... )

3] copy _static/files-icons into directory with static files

this folder contain icons

4] verify your webserver config for static

for example string from my nginx conf:

location ~* ^.+.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|txt|tar|mid|midi|wav|bmp|rtf|js|flv|mp3)$ { root /web/project; }

5] use in your template tags:

for load {% load browse1 %}

for use {% browse1 'path' %}

for example {% browse1 './files' %}