From c065720ded72c0e488845b930eb8d6370d99c9e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 7 Aug 2021 19:50:16 +0200 Subject: [PATCH] Link rest api on website --- shimatta_kenkyusho/shimatta_kenkyusho/urls.py | 2 +- shimatta_kenkyusho/templates/base.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@