urls.py 692 B

12345678910111213141516
  1. from django.urls import path
  2. from .views.softwarelistview import SoftwareListView
  3. from .views.softwareview import SoftwareView, SoftwareEdit
  4. from .views.report import Report
  5. from .views.versionlistview import VersionListView
  6. from .views.versionview import VersionView, VersionEdit
  7. urlpatterns = [
  8. path('versions', VersionListView.as_view()),
  9. path('', SoftwareListView.as_view()),
  10. path('<str:software_id>', SoftwareView.as_view()),
  11. path('<str:software_id>/edit', SoftwareEdit.as_view()),
  12. path('<str:software_id>/versions', VersionView.as_view()),
  13. path('<str:software_id>/versions/edit', VersionEdit.as_view()),
  14. path('<str:software_id>/report', Report.as_view())
  15. ]