A
A
Anton Kosterin2021-06-27 09:34:59
Django
Anton Kosterin, 2021-06-27 09:34:59

Importing views.py into urls.py, how to fix error?

Good afternoon, I'm having a problem importing the application's views.py file into urls.
First I just wrote ( from shop.views import index_page ), but it doesn't understand the application name shop
Tried to do it through include('shop.urls'), there seems to be no errors, but it doesn't work either.
Despite the fact that other projects used both options above and they worked
tell me how to do it

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question