pythondjangodjango-grappellidjango-filebrowserdjango-media

Django file browser doesn't work


I have installed Django file browser and added grappelli and filebrowser to my installed apps. And did every thing said in documention but when I browse http://127.0.0.1:8000/admin/filebrowser/ I got 404 page not found error. What's the problem? I configured my media settings like this:

# Media files
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'
FILEBROWSER_DIRECTORY = '/media/'

Solution

  • The problem is your FILEBROWSER_DIRECTORY setting. It should have absolute path.

    Unfortunately, the error is hidden by the nasty 400 Bad Request, as explained in this ticket.