network_inventory/network_inventory/inventory/urls.py

22 lines
909 B
Python
Raw Normal View History

2019-07-24 22:27:14 +02:00
from django.urls import path
2017-12-25 13:31:29 +01:00
2019-07-24 22:27:14 +02:00
from . import views
2017-12-25 13:31:29 +01:00
urlpatterns = [
2019-08-02 13:05:42 +02:00
path('', views.customers_table_view, name='customers'),
2019-07-25 20:34:52 +02:00
path('customer/<int:pk>/', views.CustomerDetailView.as_view(),
name='customer'),
2019-07-28 22:02:07 +02:00
path('customer/<int:customer_id>/computers',
2019-08-02 13:05:42 +02:00
views.computers_table_view, name='computers'),
2019-07-25 20:35:22 +02:00
path('device/<int:device_id>/', views.device_detail_view, name='device'),
path('computer/<int:computer_id>/', views.computer_detail_view,
2019-07-24 22:38:19 +02:00
name='computer'),
2019-08-02 13:05:42 +02:00
path('customer/<int:customer_id>/devices/', views.devices_table_view,
name='devices'),
2019-08-02 13:05:42 +02:00
path('customer/<int:customer_id>/nets/', views.nets_table_view,
2019-07-28 22:02:07 +02:00
name='nets'),
2019-08-02 13:05:42 +02:00
path('net/<int:pk>/', views.net_detail_view, name='net'),
2019-08-02 14:31:55 +02:00
path('backup/<int:pk>/', views.backup_detail_view, name='backup'),
2019-08-02 16:54:32 +02:00
path('computers/all/', views.AllComputersView.as_view(), name='all_computers')
2017-12-25 13:31:29 +01:00
]