Tuesday, August 25, 2015

Re: Turn off migrations completely in Django 1.7

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJV3IQaAAoJEC0ft5FqUuEhRCcQAIw3U4VcsvONgPIqYPv2lgpE
h1RVWpLiwm7CFnhmageBtjf2EN9ROAD8p29P3FCaFT/6xO/p0J49eMEX2/HuW+Sz
wV+gViGYtg8YAeyzVRkMb3ff911OkR6RmviYj2q9TH6wc8JYo0Cw6q4tocC3hoSe
/xCsP3HOgbld4Ym/1ej2vnAZjP5NzrrwanyT9SZ5VBWGK24R30eZ7jUtY9TQuCW7
/MUGRLnhhI+tu6Yln5LjnCb4GSwI335rfSmMJuG57N36J5ziAO0QLJSkQxfiycKt
mkkWHCjdF3wJU15hHlSlL9FPBTLNmh7JOlljNBge/JTBmQBrUcWMRgGNtHI6Hx/c
WzK7QCvWhz455k1rxUiW4NJHODuHkMoysjyV29kU/0muM7mtjkIr6DBiG8PulXat
KZrhK1lRurNdTm9wajAuUaoR/aCCqxSio6gbkPwD7S4R5rP3wQizie1uNPQrQPZh
7YChwmbgihgRQkHLRRJGNPB4Q+OYp0N9W+MQXCTaIwYOjk9WJVJOOZhFWyIKqPAP
Qf2EDvm4lfqkwyqaJwMxbBWtxXei7+7R3waCs8x+1rwAVZYVPws4GOTUOUiHjk8M
2OVzNX8GgQXRvIaftfnnJKBlp/vC4ULCGhcEtqO4kDIaolIJsfGrQh2Ccoz4Qh8u
/YJxzhXOzGxf2Ry6v0/r
=G0kX
-----END PGP SIGNATURE-----
On 08/25/2015 09:02 AM, Marcin Nowak wrote:
>
> On 25 August 2015 at 16:53, Carl Meyer <carl@oddbird.net
> <mailto:carl@oddbird.net>> wrote:
>
> I thought we already covered this topic, and `managed=False` should work
> for your use case. That's the exact meaning of this flag: "I don't want
> Django to manage my database, please never touch it." Have you tried
> adding that flag to your models? Does something about that not work
> for you?
>
>
>
> Managed=False is not same. I.e. I can't set managed=False for 3rd party
> apps (including `django.contrib`)
> But to be honest I didn't tried iterate over all INSTALLED_APPS to patch
> meta options...

Hmm, yes, third-party apps are an issue.

My recollection from the last time you brought this up is that we
decided an AppConfig-level setting to do the equivalent of managed=False
for an entire app would be a reasonable feature request. Since you can
provide your own AppConfig for third-party apps, this would cover that
use case, too.

Carl

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

No comments:

Post a Comment