'Django: Unresolved reference, when trying to import an app

I am having issues with importing other apps and could not find a solution on the internet. I get an Unresolved reference 'name'.

Project/urls.py

from django.contrib import admin
from django.urls import path,include
from users import views as user_views          #'users' and 'views' are underlined in red
from homepage import views as homepage_views   #same goes for 'homepage' and 'views'

urlpatterns = [

    path('',include("homepage.urls")),
    path('register/',user_views.register),
    path('admin/', admin.site.urls),
]

Project/settings.py

INSTALLED_APPS = [
'homepage.apps.HomepageConfig',
'users.apps.UsersConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

]

Project Structure

Project structure

Thanks for your help and let me know if u need more information



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source