I have a problem with url paths. As I understand the path users/ is perceived as <str: username>/ named users. Is it possible to solve this problem without creating a new application?
urlpatterns=[
path('',PostList.as_view(), name='index'),
path('<str:username>/new/',News.as_view(), name='new'),
path('<str:username>/', user_posts, name='profile'),
path('<str:username>/<int:post_id>/', post_view, name='tak'),
path('<str:username>/<int:post_id>/add_comment/', comment_add, name='add_comment'),
path('<str:username>/<int:post_id>/edit/', Update.as_view(), name='edit'),
path('users/',user_list,name='user_list'),
path('users/<str:username>/',user_detail,name='user_detail'),
]