I am trying to graph models for selected apps with the following command: `./manage.py graph_models foo.bar > my_project.dot` , I get this error: `manage.py graph_models: error: unrecognized arguments: foo.bar
`.
I have also tried `./manage.py graph_models bar > my_project.dot`. Same error.
Using --all-applications works fine, but this is not what I want.
My project layout has apps in a subdirectory (same as django cookiecutter):
foo
├── config
│ ├── settings
│ │ ├── common.py
│ │ ├── local.py
│ │ ├── production.py
...
...
├── foo
│ ├── bar
│ │ ├── apps.py
│ │ ├── models.py
...
...
Apps are load via a config:
INSTALLED_APPS = [
...
'foo.bar.apps.BarConfig',
...
]
foo.bar.apps.BarConfig looks like:
class BarConfig(AppConfig):
name = 'foo.bar'
verbose_name = 'Bar'
label = 'bar'
Am I doing something wrong here? Or is this a bug?