From 9c68247105e075fb7364af99cb3ee26c1a82b65b Mon Sep 17 00:00:00 2001 From: Parker Berberian Date: Wed, 3 Jul 2019 12:37:35 -0400 Subject: Update Dependencies Removes or upgrades the dependencies in requirements.txt Change-Id: I4e66348fc80259b4a2f64ca912556f7d847f0645 Signed-off-by: Parker Berberian --- src/api/urls.py | 10 +--------- src/pharos_dashboard/settings.py | 3 --- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'src') 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//profile', lab_profile), path('labs//status', lab_status), path('labs//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 = [ -- cgit 1.2.3-korg