I am trying to set up django-filer on my website. I cannot figure out how to get the URLS to be separate from the admin site on the website.
localhost:8000/admin/filer/folder/
Is where it wants to go now, which of course requires someone to have complete admin access in the /admin portion. I want them to have just filer access and be able to see the site. I have my base urls.py as:
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('accounts.urls')), # new
path('accounts/', include('django.contrib.auth.urls')),
path('filer/', include('filer.server.urls')),
]
Going to localhost:8000/filer does nothing though? I was hoping I was able to create a local little dropbox functionality with my django website where registered users can use it, though they don't have to be admin in the /admin
Is this even possible? I didn't see it in the documentation for filer at all?
When I looked into the source code of django-filer I felt, it will be very hard to re-implement these kinds of operations outside the Django Admin.
So, I would like to implement a different solution... Allow non-staff users to access the Django admin, but only to this particular app
For that, we need to override the default admin site.
Notes:
login_formandhas_permission(...)?is_staffflag. In our cases, we need to allow all authenticated usersAs of now, for a non-staff user can log in to the Django Admin and he will able to see an empty Django dashboard as below
Now we need to handle the permissions. For that, I am using Group Permissions schemes. So,
filerapp permissions to the groupand now finally, for a normal user, the Django Admin will look like,