from django.urls import include, path
from rest_framework import routers
from rest_framework.authtoken import views as rest_views
from . import views

router = routers.DefaultRouter()
router.register(r'blog', views.BlogPostViewSet)

# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
    path('', include(router.urls)),
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    # path('api-token-auth/', rest_views.obtain_auth_token),
]

59be5e3e186037e1484ad9616d55c95ce8165243
<mask token>

<mask token>
router.register('blog', views.BlogPostViewSet)
<mask token>

<mask token>
router = routers.DefaultRouter()
router.register('blog', views.BlogPostViewSet)
urlpatterns = [path('', include(router.urls)), path('api-auth/', include(
    'rest_framework.urls', namespace='rest_framework'))]

from django.urls import include, path
from rest_framework import routers
from rest_framework.authtoken import views as rest_views
from . import views
router = routers.DefaultRouter()
router.register('blog', views.BlogPostViewSet)
urlpatterns = [path('', include(router.urls)), path('api-auth/', include(
    'rest_framework.urls', namespace='rest_framework'))]

from django.urls import include, path
from rest_framework import routers
from rest_framework.authtoken import views as rest_views
from . import views

router = routers.DefaultRouter()
router.register(r'blog', views.BlogPostViewSet)

# Wire up our API using automatic URL routing.
# Additionally, we include login URLs for the browsable API.
urlpatterns = [
    path('', include(router.urls)),
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
    # path('api-token-auth/', rest_views.obtain_auth_token),
]
