aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-07-08 15:10:27 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-07-08 15:10:27 +0000
commitc84a22a2f0cc6dcfbd5a26821baf7e5addcfe73d (patch)
treedbfbd11780197807ef905accb96ccf6d0a9352b8 /src
parent35c8640a32b7c6b3b35d68367668898fdfd7d423 (diff)
parent9c68247105e075fb7364af99cb3ee26c1a82b65b (diff)
Merge "Update Dependencies"
Diffstat (limited to 'src')
-rw-r--r--src/api/urls.py10
-rw-r--r--src/pharos_dashboard/settings.py3
2 files changed, 1 insertions, 12 deletions
diff --git a/src/api/urls.py b/src/api/urls.py
index 7a48425..778f6eb 100644
--- a/src/api/urls.py
+++ b/src/api/urls.py
@@ -24,13 +24,10 @@ Including another URLconf
1. Import the include() function: from django.conf.urls import url, include
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
"""
-from django.conf.urls import url, include
+from django.conf.urls import url
from django.urls import path
-from rest_framework import routers
from api.views import (
- BookingViewSet,
- UserViewSet,
lab_profile,
lab_status,
lab_inventory,
@@ -46,12 +43,7 @@ from api.views import (
GenerateTokenView
)
-router = routers.DefaultRouter()
-router.register(r'bookings', BookingViewSet)
-router.register(r'user', UserViewSet)
-
urlpatterns = [
- url(r'^', include(router.urls)),
path('labs/<slug:lab_name>/profile', lab_profile),
path('labs/<slug:lab_name>/status', lab_status),
path('labs/<slug:lab_name>/inventory', lab_inventory),
diff --git a/src/pharos_dashboard/settings.py b/src/pharos_dashboard/settings.py
index 86de78c..6bd0a2a 100644
--- a/src/pharos_dashboard/settings.py
+++ b/src/pharos_dashboard/settings.py
@@ -36,9 +36,6 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'django.contrib.humanize',
'bootstrap4',
- 'crispy_forms',
- 'rest_framework',
- 'rest_framework.authtoken',
]
MIDDLEWARE = [