from backend.api.views import (
    CaseViewSet,
    CandidateViewSet,
    NoduleViewSet,
    ImageSeriesViewSet,
    ImageAvailableApiView,
    candidate_mark,
    candidate_dismiss,
)
from django.conf.urls import (
    include,
    url
)
from rest_framework import routers

router = routers.DefaultRouter()
router.register(r'cases', CaseViewSet)
router.register(r'candidates', CandidateViewSet)
router.register(r'nodules', NoduleViewSet)
router.register(r'images', ImageSeriesViewSet)

urlpatterns = [
    url(r'^', include(router.urls)),
    url(r'^images/available$', ImageAvailableApiView.as_view(), name='image-available'),
    url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework'))
    url(r'^candidates/(?P<candidate_id>\d+)/dismiss$', candidate_dismiss, name='candidate-dismiss'),
    url(r'^candidates/(?P<candidate_id>\d+)/mark$', candidate_mark, name='candidate-mark'),
]

@@ -549,168 +549,169 @@
 (r'%5E
-images/available$', ImageAvailableApiView.as_view(), name='image-available'),%0A    url(r'%5Eapi-auth/', include('rest_framework.urls', namespace='rest_framework'))
+api-auth/', include('rest_framework.urls', namespace='rest_framework')),%0A    url(r'%5Eimages/available$', ImageAvailableApiView.as_view(), name='image-available'),
 %0A   

fix typo