project a urls.py b views.py
The case is like this. I am not being able to import the function from views.py in urls.py. It shows the error attempted relative import beyond top-level package.
from django.contrib import admin
from django.urls import path
from ..b.views import function
urlpatterns = [
path('admin/', admin.site.urls),
path('function/', function),]
from ..b.views import function ValueError: attempted relative import beyond top-level package