Re: Running makemigrations in pluggable nested app using AppConfig

2018-03-19 Thread 'Tom Evans' via Django users
In order to make it "work", I imported the models from foo_lib.django app.models into foo_lib.models. Django was then able to find the models, and create the migration files. They are all in the wrong place however, that part of the library should have nothing to do with django and so this obvious

Running makemigrations in pluggable nested app using AppConfig

2018-03-19 Thread 'Tom Evans' via Django users
Hi all I'm writing a small library which will be bundled together with a pluggable django app. The app provides a bunch of different AppConfig instances, the end user chooses one and pops it in their INSTALLED_APPS: INSTALLED_APPS += [ 'foo_lib.contrib.django_app.configs.FooAppConfig', ] All