Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Wim Olivier
Great, thanks man! I will try that. Using local auth and PostgreSQL - no cloud services. Regards! Wim On Mon, 11 Nov 2019 at 08:39, Motaz Hejaze wrote: > I dont know what is your authentication based on , but i faced such a > scenario .. > > One of the solutions is to make a middleware that che

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Motaz Hejaze
I dont know what is your authentication based on , but i faced such a scenario .. One of the solutions is to make a middleware that checks the user type with the url prefix So usertype1 all related routes will be under /usertype1/ usertype2 all related routes will be under /usertype2/ Middlewar

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-10 Thread Wim Olivier
Thanks Motaz, That gives me a little bit of direction. I'm thinking now of controlling access to each app's URL's via a single piece of middleware (instead of at each View - just have to figure out how to do that. Regards, Wim On Saturday, 9 November 2019 10:44:58 UTC+2, Motaz Hejaze wrote: >

Re: Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-09 Thread Motaz Hejaze
If you dont want django admin just remove it from installed apps , middleware and urls.. But i dont advice you to do this , you can make you own dashboards and keep django default admin panel .. You need a 3 signup pages and 3 login pages , each signup page will create a different user and each l

Disabling Django Admin, and creating my own three custom admin dashboards

2019-11-08 Thread Wim Olivier
Hi everyone, I would like to disable the Django Admin, and create my own custom admin dashboards. There must be three different types of admin dashboards: - one for Customers (normal users) where they can do CRUD on their profile and services (URI: /customer/dashboard) - one for Partners where t