Can we set the app name to be same when importing a model, in migrations, and in its apps.py name?
Docs for foreign key says, "To refer to models defined in another application, you can explicitly specify a model with the full application label. For example, if the Manufacturer model above is defined in another application called production, you’d need to use: ..."
Perhaps it would help to link app_label
and "full application label" (which should perhaps be renamed app_label
) in this section. In the docs for app_label
you can read "It defaults to the last component of name."
I believe this clarifies your confusion.