> Is Django suitable for multi-tenant database application? i.e.
> combining username and company_id as primary key

You omit some key details:

-are the tenants writing data, or just reading data?

If they're just reading data, you can jockey your views based on 
the tenant.  We're currently doing that in our current Django app.

-do you want to use the default Admin?

If you want to use the default Admin, no.  You /can/ write your 
own admin.  This is a bit of a pain, but can be done.  This might 
be eased a bit in the newforms series.  I haven't dug into it a 
bit, but it sounds like it's designed to help here.  Fortunately, 
Django is just a framework, so it doesn't prevent you from doing 
this.  It just means that you can't take advantage of default 
scaffolding and have to roll some of your own.

As previously mentioned by Malcom, Django doesn't currently 
support multi-column keys.

Just a few ideas.

-tkc





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to