Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread Marcin Nowak
On 25 August 2015 at 14:32, Avraham Serour wrote: > > We're working with databases and their representations in application > layer, and not vice versa. > > Speak for yourself, I'm working with the models, saving them in the > database is just an implementation detail > I'm speaking on behalf of

Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread Marcin Nowak
On 25 August 2015 at 16:21, Tim Graham wrote: > What does "turning off migrations" mean in practice? Is it not enough to > avoid the makemigrations and migrate management commands? Currently I'm replacing mgmt commands to avoid accidential calls, and also replacing test runner. But, for examp

Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread Marcin Nowak
On 25 August 2015 at 16:53, Carl Meyer 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 mode

Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread Marcin Nowak
> > Maybe there is a solution for both? > > Sometimes when you have unusual requirements you have to do a little > more work to meet them. To my knowledge, out of the many hundreds of > thousands of Django users, you are the first and only one to request a > way to turn off migrations entirely. M

Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread Marcin Nowak
On 25 August 2015 at 17:04, Carl Meyer wrote: > 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. Sinc

Re: Turn off migrations completely in Django 1.7

2015-08-25 Thread Marcin Nowak
On 25 August 2015 at 18:44, Marcos Eliziario wrote: Changing the database accidentally can be avoided simply by adjusting the > privileges of the database user django uses. It's not perfect. The connection requires write access and Django inserts some data automatically. But table-level grants

Re: Turn off migrations completely in Django 1.7

2015-08-26 Thread Marcin Nowak
On 26 August 2015 at 16:50, Carl Meyer wrote: > 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 commi

Re: Django 1.7 migrations: Adding one field to User`s model

2015-08-26 Thread Marcin Nowak
On 26 August 2015 at 20:09, Hugo Osvaldo Barrera wrote: > Oh, so the field you're adding in monkey patching contrib.auth.User? > IMHO, the design problem isn't django, but rather monkey-patching models > itself. Maybe you'd be better of using a custom user model. > I've tried to use custom user

Re: Turn off migrations completely in Django 1.7

2016-04-21 Thread Marcin Nowak
On 21 April 2016 at 10:06, wrote: > Either way - we recently hit another Django limitation - as best I've been > able to tell, joining a table with itself seems to be very poorly supported > - so we're heading towards SqlAlchemy, and probably away from Django > altogether in time. If you're bui

Re: Turn off migrations completely in Django 1.7

2016-04-22 Thread Marcin Nowak
On 22 April 2016 at 02:02, wrote: > Yeah, good call perhaps. We're certainly drawn to raw sql (which we all > know fairly well) compared to learning Django's tricks for complex queries, > but the originator of our project chose to write lots of unit tests using > sqlite (instead of our productio