Monday, April 27, 2015

Re: Turn off migrations completely in Django 1.7

Jamie

Well I agree top-posting is usually a problem - especially for those who
hate it. But in this case the top-poster was semi-hijacking the thread
and in doing so felt the need to top post to differentiate the subject
matter. That difference was in "disabling migrations" versus turning off
migrations completely and preventing the creation of the migrations
table - the latter not something the top poster seemed to worry about.
Also, there is the line "even if all of the other models are set to
managed=False" which implies another difference possibly justifying a
thread semi-hijack. Anyway, I suspect disabling migration - even if a
"master-switch" could be built - is undesirable if one is using any of
the django tables.

Please forgive me for hijacking this thread to discuss top-posting.

Mike

On 28/04/2015 1:27 PM, Jamie Lawrence wrote:
> On Apr 27, 2015, at 7:01 PM, Mike Dewhirst <miked@dewhirst.com.au>
> wrote:
>>
>>> On 27/04/2015 9:54 AM, marcin.j.nowak@gmail.com wrote: So what
>>> about that? I'm also interested in disabling migrations.
>>
>> Would it suffice to have all your models specify "managed = False"
>> in the Meta class?
>>
>> https://docs.djangoproject.com/en/1.7/ref/models/options/#managed
>
> This is why top posting or at least failing to trim is bad for (at
> least) technical mailing lists. Threads end up looping.
>
>> From the very email quoted:
>
>
>>> On Saturday, September 20, 2014 at 6:37:59 AM UTC+2, Anthony
>>> Tuininga wrote:
>>>
>>> Hmm, the problem is that there doesn't appear to be any way to
>>> turn off the creation of the migrations table itself, even if all
>>> of the other models are set to managed=False as suggested by
>>> Nikolas. I've commented it out for now but it would be ideal to
>>> have some way of turning it off completely -- or simply doing
>>> nothing if there are no managed models.
>

--
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/553F187A.7060401%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment