I am working on this weekend project, to learn Django and I am stuck. Before adding the REST framework (one to last commit in the repo), everything was working just alright. Once I added the djangorestframework library, everything fell apart. Now, whether you run the app on a venv or on DOcker, you will get the same result: RuntimeError: Model class oauth2_provider.models.Application doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS. ... or a similar one related to rest_framework's Token. Both libraries are installed. I understand the problem is that something is wrong with INSTALLED_APPS. But... WHAT?! The docs make me think I am not doing anything wrong. If you look at the imports, from rest_framework etc etc and from oauth2_provider etc etc seem to be the problem. Error logs and stack traces are quite useless, there is not useful info in there. Your help will be much appreciated. Continue reading...