Wednesday, August 26, 2015

Re: Turn off migrations completely in Django 1.7

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

iQIcBAEBCAAGBQJV3dI+AAoJEC0ft5FqUuEhZ60QAK74dsn/lD2OYyBSB+lv6QAR
O6p9wnHhliRVcrMAB3qZhcZZY+h4m0oASG5a1EKDyE2ebtwkXpXEg1xJnz26RkCO
sDWOSJwDpP+pqTos1VKtOwmqsH00KCFvDKx4ZNXqG2eKoW7hkTqXcp1g4zxeNE2w
XHBXG9sxhTxWtILO6bIz4qIXORmLrPzDFHPcogCi7qv7lge2yGd734i5DEBlk1yx
PShwxpAf6y/iIn09BQZbjPDHNF0in1U0zE6txU08bDfcDbHe+OzRU8NErMFbv+NN
DaFBbibyMwnNCBPVtmhnkSo/3iZg7T3G5Ub0BiuCuCd5QtHDqtbRjCo1j+6xUy0y
iMg7RrEdgPu6zWXvrCHC47HJ35TKWhif5pkre6hKYYmUVgFcAVV4GXeZaxZ9ZLjg
Xe7nNhLy6zq7kkoOP6u6KTX4QG4Y01/ugOe2hBdE6tNk5kJT1uQnHtaShN3O+sfq
89Df+TQuQi+s3uUPFFvTGc7wtKITtaW0puNT5hjSIN/y2vjIMd9p0SO1mtpI38Kl
HfH0Q7FHQRfDw1kZSmqeZ2G9PHb1C5BQAaR/iIUrzzATcGN7fWfnMleMJ0S0itTh
5QV5l1xpBdgJjtUi6hvvpjwKfTluTdR6vwymuyKIhtZAfuI8lCq2V+QUSQNS/vPh
7O7es5+td9RtwqjdIDen
=+nE4
-----END PGP SIGNATURE-----
On 08/26/2015 08:15 AM, Carl Meyer wrote:
> I agree, and I already suggested a new feature (`managed=False` at the
> AppConfig level) for which I think a solid patch would most likely be
> accepted. This new feature would be capable of handling the "don't
> migrate anything" case as well as the wide variety of "migrate these
> apps but not those" cases.

Another option might be to leverage the existing `MIGRATION_MODULES`
setting, allowing a value of `None` to mean "ignore migrations for this
app, I will manage its schema myself outside of Django."

At this point the discussion belongs on the django-developers list, to
enumerate the real-world use cases and sort out the pros and cons of the
various possibilities. Getting a change into Django is rarely
impossible, but it does require committing some time and energy to
discussion and evaluation of the options.

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/55DDD23D.5030301%40oddbird.net.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment