(2012年02月28日 01:34), Florian Apolloner wrote:
> Hi,
> 
> On Monday, February 27, 2012 2:53:37 PM UTC+1, Alisue wrote:
>>
>> But I found that ``override_settings`` is available in dev version of 
>> django. So I just wonder that if official django's 
>> ``override_settings`` support dynamic model creation.
> 
> 
> ``override_settings`` does exactly what the name says: It overrides 
> settings -- there is nothing special done for models etc, it's just a 
> convenient way to change settings and restore them back later on.
> 
> Cheers,
> Florian 
> 
So you mean that ``override_settings`` should have minimum feature and
should NOT do complicated things? That makes sense but I think django
SHOULD HAVE some features for creating tables dynamically in test and
when user override ``INSTALLED_APPS`` that mean the user want to use
that app in test (or whatever) so I suggested.

Well then how do you think that django's ``TestCase`` have
``required_apps`` attribute which is used to add required
apps and create tables of the apps? In that case, ``override_settings``
is not used for overriding ``INSTALLED_APPS`` and should raise warning.

Thanks.
Alisue

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to