I have a demo product built on django framework and is running live. Prospective customer will login to the UI with superuser access privilege. I wanted to show the delete option but when they execute the delete option, I want to show the message like ‘not allowed for demo login’.
Is there a way to achieve this quickly in django framework. What is the best option to do this.
Thanks
Siva
I fixed this by creating a demo user and adding the following code to the middleware class: