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
    – Satevg
    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. Nov 8, 2018 at 14:06

3 Answers 3

14

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.

3

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

-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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.