network_inventory/network_inventory/inventory/urls.py

18 lines
531 B
Python
Raw Normal View History

2017-12-25 13:31:29 +01:00
from django.conf.urls import url
from inventory import views
2017-12-25 13:31:29 +01:00
urlpatterns = [
2019-06-10 21:56:21 +02:00
url(r'^$', views.CustomerList.as_view(), name='customers'),
url(r'^customer/(?P<customer_id>[0-9]+)/$',
views.ComputerList.as_view(),
name='computers'),
2017-12-25 13:31:29 +01:00
url(r'^device/(?P<device_id>[0-9]+)/$',
views.device_details,
name='device'),
url(r'^computer/(?P<computer_id>[0-9]+)/$',
views.computer_details,
name='computer'),
url(r'^devices/$', views.DeviceList.as_view(), name='devices'),
2017-12-25 13:31:29 +01:00
]