Re: Multi-tenant Django w/ Multi-DB?

2011-01-05 Thread Marco Louro
Thanks for your reply Justin, I'd like to avoid having multiple tenants in the same database, I feel multi-database is easier to scale, and simpler in a code maintenance sense. It does required to run database migrations once per tenant, but I still see it as the better solution. One solution I

Multi-tenant Django w/ Multi-DB?

2011-01-05 Thread Marco Louro
Hey, I'm wondering if Multi-DB supports some kind of multi-tenancy on the DB level (one app instance supporting multiple databases - one per client - 2 on http://www.ibm.com/developerworks/cloud/library/cl-multitenantsaas/figure0.gif). I don't think it does, but just want to be sure. I'm

Re: Reason for not allowing spaces in usernames?

2009-06-12 Thread Marco Louro
As long as you trim start and trailing spaces, there shouldn't be any problem, but personally I wouldn't use spaces in usernames at all. On Jun 12, 2:42 pm, Wiiboy wrote: > Do you think I would have problems if I disabled the checking for > spaces? > > When I register

Choosing database at runtime

2009-05-28 Thread Marco Louro
Hi, I'm building an app where each subscriber would have their own sub domain name, and database, but would like to run a single Django instance for all of them. I've seen a lot of info that points that this is not supported by Django right now, or that it is not easy to do it at least. I don't

Adding costum css classes to form labels based on validation rules outside the admin

2008-12-09 Thread Marco Louro
Hi, I guess the subject sums it up.. Basicly, in the admin we have: City: But oustide there is no 'class="required"'. Is there a way to define this so that it shows up? That would make my life much easier since I could just code some javascript to do client side validation based on css

Re: how to use generic_inlineformset_factory ?

2008-12-07 Thread Marco Louro
c.py in __init__, line 295 > > On Dec 8, 4:07 am, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > > On Sun, 2008-12-07 at 19:46 -0800, Marco Louro wrote: > > > Hi, > > > > I'm trying to use generic_inlineformset_factory. There are no docs for >

Re: how to use generic_inlineformset_factory ?

2008-12-07 Thread Marco Louro
' object has no attribute '_meta' Exception Location: /usr/lib/python2.5/site-packages/django/contrib/ contenttypes/generic.py in __init__, line 295 On Dec 8, 4:07 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-12-07 at 19:46 -0800, Marco Louro wrote: > > Hi, &

how to use generic_inlineformset_factory ?

2008-12-07 Thread Marco Louro
Hi, I'm trying to use generic_inlineformset_factory. There are no docs for it except a Generic Relations Model example @ http://www.djangoproject.com/documentation/models/generic_relations/ on the bottom (GenericInlineFormSet tests) My question here is how to pass the POST vars to it? In a