Skip to content
captainmish edited this page Sep 13, 2010 · 6 revisions

This text was copied from http://django-filebrowser.googlecode.com/svn-history/r338/wiki/installationbasic.wiki, and updated for this wiki markup and the no-grappelli version

Basic Installation

  1. Install the FileBrowser
    Install the FileBrowser anywhere on your python-path. I´m personally using the project-directory.
    git clone git://github.com/wardi/django-filebrowser-no-grappelli.git
  2. Copy Media
    Copy the folder /media either to your admin media-directory (cp -R /path/to/filebrowser/media/filebrowser /path/to/your/admin/media/) or to your preferred media-directory (in this case, you have to edit URL_FILEBROWSER_MEDIA in fb_settings).
  3. Add filebrowser to your INSTALLED APPS.
    Open your projects settings-file (settings.py) and add the filebrowser to your INSTALLED APPS.
  4. Change fb_settings.py
    Either change fb_settings.py or overwrite the filebrowser settings in your project settings-file (settings.py). See “Available Settings”.
    Note: You do need an upload-directory. The default one is “uploads” inside your MEDIA_ROOT. Check URL_WWW and PATH_SERVER if you change this directory.
  5. Change your urls.py
    Add the following line BEFORE the admin-urls:
    (r’^admin/filebrowser/‘, include(’filebrowser.urls’)),
  6. Add the FileBrowser to your Admin Indexpage
    Edit /templates/admin/index.html. Add this code BEFORE {% for app in app_list } … { endfor }:
    {
    include “filebrowser/append.html” %}
  7. That’s it.

PS. There are problems with the upload using wsgi version less than 2.4 – make sure you have a more updated version.

IMPORTANT: About 90% of the problems installing the filebrowser are related to wrong URLS and/or PATHS. So, please read through [http://code.google.com/p/django-filebrowser/wiki/Settings Available Settings] and check everything with either URL or PATH carefully (especially when using TinyMCE).

Clone this wiki locally