B
B
Black back2020-12-09 11:46:35
Django
Black back, 2020-12-09 11:46:35

ModuleNotFoundError: No module named 'shop.corer' how to fix?

At startup, it gives such an error what to do, tell me pzh
I have Django == 3.1.4
, the hierarchy is like this (all folders are in place):

--shop
       --corer
           --views.py
           --models.py
      |
      |
       --shop
               --settings.py
               --wsgi.py

URLs.py:
from shop.corer import views

urlpatterns = [
    path('admin/', admin.site.urls),
    path('corer/', views.ReactVielw.as_view(), name='corer'),
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-12-09
@bekss

from corer import views

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question