Re: Multi-tenant Django

2014-01-26 Thread Caleb Lamb
Hi Alec, Have you been able to find a multi-tenant solution for django? Thanks, Caleb On Tuesday, May 8, 2012 10:02:45 PM UTC-5, Alec Taylor wrote: > > Dear Django-developers, > > I've been using Django for a few months now, and recently—for > different projects—started using the web-framewor

Re: get_user_model in Django 1.7

2014-01-26 Thread Russell Keith-Magee
On Mon, Jan 27, 2014 at 12:52 AM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > I wanted to write to the mailing list about this problem. Thanks for > bringing it up. > > Here's what happens. Django 1.7 is more strict about the import sequence. > Technically, the app registry pop

Re: Minor concern with the "apps" convention

2014-01-26 Thread Russell Keith-Magee
On Sun, Jan 26, 2014 at 8:54 PM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > Hello, > > Django ≥ 1.7 recommends to define AppConfig subclasses for a given > application in apps.py. > > If the application also imports the app registry in its __init__.py with > `from django.apps

Re: Ticket #21751 review requested

2014-01-26 Thread Shai Berger
Just to make things clear, my reservations about the use of 'with' syntax with cursors do not amount to an objection to this PR. I have not reviewed it again since the rebase, but I did like most of what I've seen before. The with- blocks can be cleaned up later, if I or anyone else find it just

Re: get_user_model in Django 1.7

2014-01-26 Thread Aymeric Augustin
I wanted to write to the mailing list about this problem. Thanks for bringing it up. Here’s what happens. Django 1.7 is more strict about the import sequence. Technically, the app registry population process isn't re-entrant anymore. As a consequence, it isn’t possible to call get_user_model()

Re: get_user_model in Django 1.7

2014-01-26 Thread Marcin Szamotulski
On 11:39 Sun 26 Jan , Marcin Szamotulski wrote: > Hello, > > I ask the question here since it is about the developed Django-1.7 > version but if you think that I should ask it at django-users then > please excuse me. > > When I use get_user_model in a top level of another app models I got an

get_user_model in Django 1.7

2014-01-26 Thread Marcin Szamotulski
Hello, I ask the question here since it is about the developed Django-1.7 version but if you think that I should ask it at django-users then please excuse me. When I use get_user_model in a top level of another app models I got an error : >>> django.setup() File "", line 1, in File

Minor concern with the "apps" convention

2014-01-26 Thread Aymeric Augustin
Hello, Django ≥ 1.7 recommends to define AppConfig subclasses for a given application in apps.py. If the application also imports the app registry in its __init__.py with `from django.apps import apps`, this definition of `apps` will conflict with the `apps` submodule. I’ve worked around this