How to Solve NameError: name 'apps' is not defined -- django

Solution: Import the 'apps' module

# Add the following line to the top of your code
from django.apps import apps

 

For more information:
django apps