Django - Heavy Databse Usage

36 views
Skip to first unread message

Paul Onteri

unread,
Nov 18, 2019, 9:51:29 AM11/18/19
to Django users
Let's say you are building a SAAS application system in which every user will use the database heavily, for example, a hospital management system. Should you have separate databases for each user? And how do you implement this in Django?

Motaz Hejaze

unread,
Nov 18, 2019, 2:28:07 PM11/18/19
to django...@googlegroups.com
Make a custom user model , using abstractbaseuser , abstract base manager , lets say the custom user model will be myuser , myuser will contain all the common data between all users like name and email for example , , extend the custom user model using one to one relation with a model for each user and but specific user data for that user in that model ,last move to make a post_save signal to save the profile model when a new user signs up and create a new user model instance ...

You need to create a sign up page for each user , but one login page could serve them all

On Mon, 18 Nov 2019, 4:50 pm Paul Onteri, <onter...@gmail.com> wrote:
Let's say you are building a SAAS application system in which every user will use the database heavily, for example, a hospital management system. Should you have separate databases for each user? And how do you implement this in Django?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c8b1fac4-bf7f-48a3-b135-88f73f2d2eb1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages