django-filebrowser-no-grappelli icon indicating copy to clipboard operation
django-filebrowser-no-grappelli copied to clipboard

Showing multiple sites in admin page

Open alcacer0 opened this issue 6 years ago • 1 comments

Hello! I was wondering if we have the option to show different sites in the admin panel. I'm currently creating two sites, with different names, so I add these two urls:

    a_site = FileBrowserSite(...) 
    b_site = FileBrowserSite(...) 
    urlpatterns =  [
            path(A_BROWSER_URL, a_site.urls),
            path(B_BROWSER_URL, b_site.urls)
    ]

I can manually access the urls (*/browse, etc..) of the two filebrowser sites with this configuration.

I was looking at merge request #5 and I see we have the FileBrowser section in the admin page. The link redirects to the first site of the two created before, but I would like to have a link for each site. Is this possible?

Thanks!

alcacer0 avatar Jul 18 '19 15:07 alcacer0

Hi @Alcasser !

Currently, filebrowser doesn't support such feature. I have never had multi-site setup but maybe passing current_app would help, I'm not sure. If you solve the issue, PRs are welcome.

smacker avatar Dec 04 '19 18:12 smacker