I have a project which has 2 app inside. One is interface and the other is users. The urls.py of the project and the app(interface) works. But the urls.py in users does not seem to work if i include any path in it.
Within my urls.py in users:
from .views import RegisterAPI
from django.urls import path
urlpatterns = [
path('api/register/', RegisterAPI.as_view(), name='register'),
Within the setting.py of installed apps:
did you include urls of this app in to your main app’s urls?
What do you mean by “does not seem to work”? Please let us know what you’re seeing and what you’re doing to cause that result. You may also want to check
show_urls from the
I just looked over my urls.py in the project. Is it something like this
path('', include('interface.urls')), that is causing the issue? As I realize there is no such line of
Yup this is the issue. Thanks for spotting it.
Thanks for attempting to help me to resolve the problem but I had just fixed it as @azazellooo pointed out the urls.py part