1👍
urlpatterns = [
path('admin/', admin.site.urls),
path('users/', include('users.urls')),
path('', include('learning_logs.urls')),
]
I think this line is causing problems. You need to add ‘users.url’ inside quotes or else it won’t be able to find these urls.
0👍
Make Sure that there is a ‘urls.py’ file in your app.
What you are doing here is that you are trying to make a new url file inside your app so that it will be ‘www.your.domain/users/the_url_choose‘ and to do this you must have a urls.py file instide your app (the folder names ‘users’)
Inside that urls file you have to copy exactly the main urls file and change it according to your needs for easy site routing
- [Answered ]-In Django, how to check if user is in site_id (site_id are created by after)
- [Answered ]-Define an order for ManyToManyField by through model field with Django
Source:stackexchange.com