Beispiel #1
0
    # about page
    # e.g. /fpiweb/about/
    path('about/', AboutView.as_view(), name='about'),

    # login page
    # e.g. /fpiweb/login/
    path('login/', LoginView.as_view(), name='login'),

    # logout page
    # e.g. /fpiweb/logout/
    path('logout/', LogoutView.as_view(), name='logout'),

    # Constraint List page
    # e.g. /fpiweb/constraints/ = list of constraints
    path('constraints/', ConstraintsListView.as_view(),
         name='constraints_view'),

    # # e.g. /fpiweb/constraints/4/ = show constraint # 4
    # path('constraint/<int:constraint>', ConstraintDetailView.as_view(),
    #      name='constraint_detail', ),

    # e.g. /fpiweb/constraints/add/ = add a constraint
    path('constraint/add/', ConstraintCreateView.as_view(),
      name='constraint_new', ),

    # e.g. /fpiweb/constraints/edit/4/ = edit constraint # 4
    path('constraint/edit/<int:pk>', ConstraintUpdateView.as_view(),
        name='constraint_update', ),

    # # e.g. /fpiweb/constraints/delete/4/ = delete constraint # 4
Beispiel #2
0
    path('create_user', AddUserView.as_view(), name='create_user'),

    # Edit_User Page
    # e.g. /fpiweb/edit_user
    path('edit_user', EditUserView.as_view(), name='edit_user'),

    # Delete Page
    # e.g. /fpiweb/delete_user
    path('delete_user', DeleteUserView.as_view(), name='delete_user'),
    # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    path('move_pallet', MovePalletView.as_view(), name='move_pallet'),

    # Constraint List page
    # e.g. /fpiweb/constraints/ = list of constraints
    path('constraints/',
         ConstraintsListView.as_view(),
         name='constraints_view'),

    # Constraint Add page
    # e.g. /fpiweb/constraint/add/ = add a constraint
    path(
        'constraint/add/',
        ConstraintCreateView.as_view(),
        name='constraint_new',
    ),

    # Constraint Edit page
    # e.g. /fpiweb/constraint/edit/4/ = edit constraint # 4
    path(
        'constraint/edit/<int:pk>/',
        ConstraintUpdateView.as_view(),