“AttributeError: ‘module’ object has no attribute ‘blah’”

  • The obvious cause of this is that the settings.py doesn’t have the directory containing blah listed in INSTALLED_APPS.
  • A less obvious cause: you’ll also get this error if the directory doesn’t contain a file __init__.py.

3 Responses to ““AttributeError: ‘module’ object has no attribute ‘blah’””

  1. John Says:

    Thanks! I would have never guessed that from the stack trace.

  2. Branko Vukelic Says:

    I’m just having the same error, and either of those do not apply. I have the app listed in INSTALLED_APPS, and I have the __init__.py.

  3. macdet Says:

    Yes, that was mine :( __init__.py

    Thx to google and you!

Leave a Reply