ModuleNotFoundError: No module named 'calc.urls' (calc is the name of my app)

I am new in django
I have already installed the module(calc) but i am still getting the error .I have been struggling with this for the last 3 days.Any help please

Application definition


from django.urls import path

from . import views

urlpatterns =[
path(’’,views.home, name=‘home’)

from django.shortcuts import render
from django. http import HttpResponse

Create your views here.

def home(request):
return HttpResponse(“Hello World”)

Do you have a file named within your calc directory? What does your directory structure look like?
(It probably should look something like this:

... and any other directories as needed.)

What is the exact and complete error you’re getting?
When and where are you getting it?

I noticed in one of your other posts that you might be getting this as an error in your IDE? If so, you can safely ignore it. (How you would resolve it depends upon what IDE you’re using and potentially some configuration issues for it.)