|
Loading...
|
django-developers@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
Re: auth.user refactor: the profile aproach Russell Keith-Magee Tue Apr 03 21:00:45 2012
On 04/04/2012, at 4:31 AM, Carl Meyer wrote: > > By the way, I took the liberty of removing from the wiki page the > references to models/settings circular dependencies, because AFAIK the > statements made about it on the wiki page were simply incorrect. > Importing settings does _not_ immediately loop through INSTALLED_APPS > and load every models file (that only happens if you run a management > command that performs model validation, and even then it happens only > after settings are fully loaded). And "from django.db import models" > itself imports settings, so if there were such a circular dependency > problem, every models.py in existence would already be suffering from > it. I frequently refer to settings in models.py and it does not cause a > problem. If anyone can provide sample code demonstrating that this is > actually a problem, feel free to correct me! Those comments were my doing. I swear that at some point in Django's past, importing settings in models was a source of problems. However, the fact that django.db.models clearly imports settings indicates that regardless of whether this problem existed in the past, it certainly isn't the case any more. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en.
- Re: auth.user refactor: the profile aproach, (continued)
- Re: auth.user refactor: the profile aproach Alex Ogier 2012/04/02
- Re: auth.user refactor: the profile aproach Hanne Moa 2012/04/13
- Re: auth.user refactor: the profile aproach Carl Meyer 2012/04/02
- Re: auth.user refactor: the profile aproach Russell Keith-Magee 2012/04/02
- Re: auth.user refactor: the profile aproach Tai Lee 2012/04/03
- Re: auth.user refactor: the profile aproach Donald Stufft 2012/04/03
- Re: auth.user refactor: the profile aproach Bruno ReniƩ 2012/04/03
- Re: auth.user refactor: the profile aproach Alex Ogier 2012/04/03
- Re: auth.user refactor: the profile aproach Andre Terra 2012/04/03
- Re: auth.user refactor: the profile aproach Carl Meyer 2012/04/03
- Re: auth.user refactor: the profile aproach Russell Keith-Magee 2012/04/03 <=
- Re: auth.user refactor: the profile aproach Adrian Holovaty 2012/04/03
- Re: auth.user refactor: the profile aproach Luke Sneeringer 2012/04/03
- Re: auth.user refactor: the profile aproach Alex Ogier 2012/04/03
- Re: auth.user refactor: the profile aproach bhuztez 2012/04/04
- Re: auth.user refactor: the profile aproach Russell Keith-Magee 2012/04/03
- Re: auth.user refactor: the profile aproach Eric Florenzano 2012/04/03
- Re: auth.user refactor: the profile aproach Tai Lee 2012/04/04
- Re: auth.user refactor: the profile aproach Luke Sneeringer 2012/04/04
- Re: auth.user refactor: the profile aproach Russell Keith-Magee 2012/04/04
- Re: auth.user refactor: the profile aproach Jacob Kaplan-Moss 2012/04/04