from django.conf.urls import include, url

urlpatterns = [
    url('', include('rest_friendship.urls', namespace='rest_friendship')),
]

from django.urls import path, include

urlpatterns = [
    path('', include(('rest_friendship.urls', 'rest_friendship'), namespace='rest_friendship')),
]

Fix deprecated url import, (to path)
Fix deprecated url import, (to path)

- from django.conf.urls import include, url
+ from django.urls import path, include
  
  urlpatterns = [
-     url('', include('rest_friendship.urls', namespace='rest_friendship')),
+     path('', include(('rest_friendship.urls', 'rest_friendship'), namespace='rest_friendship')),
  ]
  
Fix deprecated url import, (to path)
## Code Before:
from django.conf.urls import include, url

urlpatterns = [
    url('', include('rest_friendship.urls', namespace='rest_friendship')),
]

## Instruction:
Fix deprecated url import, (to path)
## Code After:
from django.urls import path, include

urlpatterns = [
    path('', include(('rest_friendship.urls', 'rest_friendship'), namespace='rest_friendship')),
]
