diff --git a/shimatta_kenkyusho/shimatta_kenkyusho/urls.py b/shimatta_kenkyusho/shimatta_kenkyusho/urls.py index 60d807e..e8ac531 100644 --- a/shimatta_kenkyusho/shimatta_kenkyusho/urls.py +++ b/shimatta_kenkyusho/shimatta_kenkyusho/urls.py @@ -23,6 +23,6 @@ from parts import views as parts_views urlpatterns = [ url(r'^admin/login/', parts_views.login_view), path('admin/', admin.site.urls), - path('api/v1/', include('api.urls')), + path('api/v1/', include('api.urls'), name='api-root'), path('', include('parts.urls')), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) diff --git a/shimatta_kenkyusho/templates/base.html b/shimatta_kenkyusho/templates/base.html index 945ab65..a4b7996 100644 --- a/shimatta_kenkyusho/templates/base.html +++ b/shimatta_kenkyusho/templates/base.html @@ -36,6 +36,7 @@ {{ base.navbar.username }}