# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns

from libs.urls import NAME_PATTERN, USERNAME_PATTERN
from plugins import views

plugin_urlpatterns = [
    url(r'^{}/{}/notebook/?$'.format(USERNAME_PATTERN, NAME_PATTERN),
        views.NotebookView.as_view()),
    url(r'^{}/{}/tensorboard/?$'.format(USERNAME_PATTERN, NAME_PATTERN),
        views.TensorboardView.as_view()),
]

urlpatterns = format_suffix_patterns(plugin_urlpatterns)

# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function

from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns

from libs.urls import NAME_PATTERN, USERNAME_PATTERN
from plugins import views

plugin_urlpatterns = [
    url(r'^/notebook/{}/{}/?$'.format(USERNAME_PATTERN, NAME_PATTERN),
        views.NotebookView.as_view()),
    url(r'^/tensorboard/{}/{}/?$'.format(USERNAME_PATTERN, NAME_PATTERN),
        views.TensorboardView.as_view()),
]

urlpatterns = format_suffix_patterns(plugin_urlpatterns)

Update project urls