Showing multiple sites in admin page
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!
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.