Re: Multi-tenant database model with new user model?

2013-05-02 Thread Venkatraman S
I think i had stumbled on django-multitenant or django-simple-multitenant
sometime back. I took some ideas from there and implemented my own version
of custom multi-tenancy.


On Wed, May 1, 2013 at 8:31 PM, Dan Gentry  wrote:

> Something I'm looking forward to learning as well.  My app uses the older
> user_profile approach.
>
> --
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Multi-tenant database model with new user model?

2013-05-01 Thread Dan Gentry
Something I'm looking forward to learning as well.  My app uses the older 
user_profile approach.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Multi-tenant database model with new user model?

2013-04-30 Thread Subodh Nijsure
Hi,

We have old model for one of my django application that requires
multi-tenant deployment. The database model I came up with is kind of
_ugly_ to support the multi-tenancy.

Are there any good examples of how one can write multi-tenant django
application using the new AbstractUser classes?

-Subodh

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Multi-tenant database

2007-03-12 Thread James Bennett

On 3/12/07, zin <[EMAIL PROTECTED]> wrote:
> Is Django suitable for multi-tenant database application? i.e.
> combining username and company_id as primary key

Django does not currently have support for composite keys. You can
fake this to a certain extent with unique_together, but from Django's
point of view only one column will be treated as the primary key.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Multi-tenant database

2007-03-12 Thread Kenneth Gonsalves


On 12-Mar-07, at 7:46 PM, Tim Chase wrote:

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

their *is* unique_together, but will that suit your needs?

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Multi-tenant database

2007-03-12 Thread Tim Chase

> 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 django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Multi-tenant database

2007-03-12 Thread Malcolm Tredinnick

On Mon, 2007-03-12 at 06:11 -0700, zin wrote:
> Is Django suitable for multi-tenant database application? i.e.
> combining username and company_id as primary key

We do not support multi-column primary keys at this point in time.

Malcolm



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---



Multi-tenant database

2007-03-12 Thread zin

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


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~--~~~~--~~--~--~---