[Answered ]-Django – AttributeError: 'module' object has no attribute 'admin'

2👍

This is a question about Python imports.

When you import a package, you don’t automatically get access to all the modules underneath it; you need to import those specifically. So instead of doing import accounting and then trying to access accounting.admin, you need to explicitly do from accounting import admin and then accessing admin.BankInline etc.

Leave a comment