Commit bb171da8 authored by Tarsvini's avatar Tarsvini

commit lab_9

parent 1538bc6a
Pipeline #14867595 failed with stages
in 3 minutes and 18 seconds
No preview for this file type
from django.test import TestCase
from django.test import Client
frm django.urls import resolve
from django.urls import resolve
# Create your tests here.
class lab9Test(TestCase):
......
......@@ -15,7 +15,7 @@ urlpatterns = [
url(r'^custom_auth/logout/$', auth_logout, name='auth_logout'),
#add/delete drones
url(r'^add_session_drones/(?P<id>\d+)/$', add_session_drones, name='add_session_drones'),
url(r'^del_session_drones/(?P<id>\d+)/$', del_session_drones, name=''),
url(r'^del_session_drones/(?P<id>\d+)/$', del_session_drones, name='del_session_drones'),
url(r'^clear_session_drones/$',clear_session_drones, name='clear_session_drones'),
#cookie
url(r'^cookie/login/$', cookie_login, name='cookie_login'),
......
......@@ -6,7 +6,7 @@ from django.http import HttpResponseRedirect
from django.urls import reverse
from django.contrib import messages
#catatan: tidak bisa menampilkan messages jika bukan menggunakan method 'render'
from .api_enterkomputer import get_drones
from .api_enterkomputer import get_drones, get_soundcards, get_opticals
response = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment