1

Im trying to run tests on my site and i get this error message. Was wondering if anyone else has experience with this. May be with the Django Framework.

TypeError: __init__() missing 1 required positional argument: 'app_module' 
2
  • Please post full stacktrace Commented Nov 8, 2018 at 13:57
  • 2
    There is absolutely no way to answer this question as you have not shown the code you are using or the full traceback. Commented Nov 8, 2018 at 14:06

3 Answers 3

16

The problem is that you've added your module to the wrong list.

You need to add it to the INSTALLED_APPS list but you've added it to the MIDDLEWARE list.

Sign up to request clarification or add additional context in comments.

Comments

3

You have put your module which looks like name.apps.NameConfig in the wrong list ( maybe on the MIDDLEWARE) instead of INSTALLED_APPS

Comments

-1

I think you're missing the self argument but can't be sure because not enough info was added. Please post the full stacktrace.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.