Nope. The package that contains a module will not necessarily know anything about the contents of the module, so in your case accounts
doesn't know anything about the User
class in accounts.user
. There isn't any general way to group things more than what you're already doing.
↧
Answer by David Z for Grouping imports together from subdirectories
↧