Questions & Answers

Is there a away to make a Django SaaS app without subdomains?

i would like to ask if there's a way to make a django app with 2 roles (me as a django admin that can use /admin panel to manage the website) and customers (who have access to the app but everyone has it's own data separated) but without using subdomains or subfolders ?

thank you so much.

2023-01-18 00:55:03
Only users with is_staff=True can access the admin site. Why do you think you'd need subdomains or folders?
2023-01-18 00:55:03
hi @DMalan thanks for your reply, well the customers shouldn't have access to same data and records, every customer should create and have it's own data
2023-01-18 00:55:03
Sure. So set is_staff=False on your customers' User objects and then they can't access the admin site.
Answers(0) :