How do I change a Django Template based on the User's Group?
问题 Right now I have two different groups of users on my site: customers and businesses. Right now I am only using one login that allows both user groups to see their profile page. However, there are portions of the profile page I only want the Customer to see and portions I only want the business to see. How can I go about limiting what each group sees on this page? Should I do it in the template with some sort of if statement? or is there some other solution anyone can let me know about? 回答1: