Monday, November 18, 2019

Re: Django - Heavy Databse Usage

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, <onteripaul@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+unsubscribe@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.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHV4E-dU7SBtf5mGvrKF81UsfZyJfO2pFZHbV4wf9M-xmA3LTA%40mail.gmail.com.

No comments:

Post a Comment