On 07/17/2015 10:38 AM, Marcin Nowak wrote:
> Sounds enough good. One important thing for me is that I have many of
> external apps and few in project managed by me. Reconfiguring most of
> apps just to tell Django "leave them alone" sounds like an overhead.
> That's why I would like to tell Django "here are my apps, manage them
> please". 

I think we need to clarify what this proposed feature does, exactly.
James' AppConfig proposal (with the parallel to unmanaged models) sounds
to me like a "migrations should ignore this app entirely" flag (which
would impact both `makemigrations` and `migrate`). Such a flag wouldn't
be useful for any reusable app that has models (and thus migrations).
I'm not opposed to this, though (much like unmanaged models themselves)
I don't think it'll be frequently used. It's basically a way to opt out
of migrations entirely.

It seems like what Marcin wants is more of a "don't ever create new
migrations for this app, but go ahead and use its existing ones
normally" flag (thus something that affects only `makemigrations`, not
`migrate`). Personally I don't really see much use case for this feature
except as a workaround for reusable apps that generate spurious new
migrations based on settings changes (e.g. the dynamic-choices case).
Normally an app shouldn't ever generate a new migration from
`makemigrations` unless you've modified its models code. So I'd be more
in favor of addressing the actual problems causing spurious new migrations.

Also, FWIW, the latter is already fairly easy to implement yourself by
overriding `makemigrations` in your project and giving it a default list
of app names if none are provided.

Carl

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/55A931DE.3030503%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to