예제 #1
0
    path('', HomeView.as_view(), name='home'),
    path('login/', LoginView.as_view(), name='login'),
    path('forgot-password/', ForgotPasswordView.as_view(), name='forgot_password'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('change-password/', ChangePasswordView.as_view(), name='change_password'),
    path('profile/', ProfileView.as_view(), name='profile'),

    # User views
    path('users/list/', UsersListView.as_view(), name='users_list'),
    path('users/create/', CreateUserView.as_view(), name='create_user'),
    path('users/<int:pk>/edit/', UpdateUserView.as_view(), name="edit_user"),
    path('users/<int:pk>/view/', UserDetailView.as_view(), name='view_user'),
    path('users/<int:pk>/delete/', UserDeleteView.as_view(), name='remove_user'),

    path(
        'password-reset/', PasswordResetView.as_view(), name='password_reset'),
    path('password-reset/done/', auth_views.PasswordResetDoneView.as_view(), name='password_reset_done'),
    path(
        'reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
    path('reset/done/', auth_views.PasswordResetCompleteView.as_view(), name='password_reset_complete'),

    # Document
    path('documents/list/', DocumentListView.as_view(), name='doc_list'),
    path('documents/create/', DocumentCreateView.as_view(), name='create_doc'),
    path('documents/<int:pk>/edit/', UpdateDocumentView.as_view(), name="edit_doc"),
    path('documents/<int:pk>/view/', DocumentDetailView.as_view(), name='view_doc'),
    path('documents/<int:pk>/delete/', DocumentDeleteView.as_view(), name='remove_doc'),

    # download
    path('documents/<int:pk>/download/', download_document, name='download_document'),
예제 #2
0
         name='forgot_password'),
    path('logout/', LogoutView.as_view(), name='logout'),
    path('change-password/',
         ChangePasswordView.as_view(),
         name='change_password'),
    path('profile/', ProfileView.as_view(), name='profile'),

    # User views
    path('users/list/', UsersListView.as_view(), name='users_list'),
    path('users/create/', CreateUserView.as_view(), name='create_user'),
    path('users/<int:pk>/edit/', UpdateUserView.as_view(), name="edit_user"),
    path('users/<int:pk>/view/', UserDetailView.as_view(), name='view_user'),
    path('users/<int:pk>/delete/',
         UserDeleteView.as_view(),
         name='remove_user'),
    path('password-reset/', PasswordResetView.as_view(),
         name='password_reset'),
    path('password-reset/done/',
         auth_views.PasswordResetDoneView.as_view(),
         name='password_reset_done'),
    path('reset/<uidb64>/<token>/',
         auth_views.PasswordResetConfirmView.as_view(),
         name='password_reset_confirm'),
    path('reset/done/',
         auth_views.PasswordResetCompleteView.as_view(),
         name='password_reset_complete'),

    # Document
    path('documents/', DocumentListView.as_view(), name='doc_list'),
    path('documents/create/', document_create, name='create_doc'),
    path('documents/<int:pk>/edit/', document_update, name="edit_doc"),
예제 #3
0
 path("dashboard/", HomeView.as_view(), name="dashboard"),
 path("login/", CompanyLoginView.as_view(), name="login"),
 #     path('login/', LoginView.as_view(), name='login'),
 path("register/", RegistrationView.as_view(), name="register"),
 path("auth/domain/", check_sub_domain, name="check_domain"),
 path("forgot-password/", ForgotPasswordView.as_view(), name="forgot_password"),
 path("logout/", LogoutView.as_view(), name="logout"),
 path("change-password/", ChangePasswordView.as_view(), name="change_password"),
 path("profile/", ProfileView.as_view(), name="profile"),
 # User views
 path("users/list/", UsersListView.as_view(), name="users_list"),
 path("users/create/", CreateUserView.as_view(), name="create_user"),
 path("users/<int:pk>/edit/", UpdateUserView.as_view(), name="edit_user"),
 path("users/<int:pk>/view/", UserDetailView.as_view(), name="view_user"),
 path("users/<int:pk>/delete/", UserDeleteView.as_view(), name="remove_user"),
 path("password-reset/", PasswordResetView.as_view(), name="password_reset"),
 path(
     "password-reset/done/",
     auth_views.PasswordResetDoneView.as_view(),
     name="password_reset_done",
 ),
 path(
     "reset/<uidb64>/<token>/",
     auth_views.PasswordResetConfirmView.as_view(),
     name="password_reset_confirm",
 ),
 path(
     "reset/done/",
     auth_views.PasswordResetCompleteView.as_view(),
     name="password_reset_complete",
 ),
예제 #4
0
    url(r'^serverlist/$', ServerlList.as_view(), name='serverlist'),
    url(r'^groupcreate/$', GroupCreate.as_view(), name='groupcreate'),
    url(r'^grouplist/$', GroupList.as_view(), name='grouplist'),
    url(r'^logslist/$', LogList.as_view(), name='logslist'),
    url(r'^commandsloglist/$',
        CommandLogList.as_view(),
        name='commandsloglist'),
    url(r'^api/', include(router.urls)),
    url(r'^webterminalhelperdetect/$',
        WebterminalHelperDetectApi.as_view(),
        name='webterminalhelperdetectapi'),
    url(r'^webterminalhelperdetectcallback/$',
        csrf_exempt(WebterminalHelperDetectCallbackApi.as_view()),
        name='webterminalhelperdetectcallbackapi'),
    url(r"password-reset/$",
        PasswordResetView.as_view(),
        name="password-reset"),
    url(
        r"password-reset-done/",
        PasswordResetDoneView.as_view(),
        name="password-reset-done",
    ),
    url(
        r"^password-reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$",
        PasswordResetConfirmView.as_view(),
        name="password-reset-confirm",
    ),
    url(r"settings/$", SettingsView.as_view(), name="settings"),
    url(r"settings-otp/$", SettingsOtpView.as_view(), name="settings-otp"),
]
예제 #5
0
파일: urls.py 프로젝트: brandontowers/crm
      ForgotPasswordView.as_view(),
      name="forgot_password"),
 path("logout/", LogoutView.as_view(), name="logout"),
 path("change-password/",
      ChangePasswordView.as_view(),
      name="change_password"),
 path("profile/", ProfileView.as_view(), name="profile"),
 # User views
 path("users/list/", UsersListView.as_view(), name="users_list"),
 path("users/create/", CreateUserView.as_view(), name="create_user"),
 path("users/<int:pk>/edit/", UpdateUserView.as_view(), name="edit_user"),
 path("users/<int:pk>/view/", UserDetailView.as_view(), name="view_user"),
 path("users/<int:pk>/delete/",
      UserDeleteView.as_view(),
      name="remove_user"),
 path("password-reset/", PasswordResetView.as_view(),
      name="password_reset"),
 path(
     "password-reset/done/",
     auth_views.PasswordResetDoneView.as_view(),
     name="password_reset_done",
 ),
 path(
     "reset/<uidb64>/<token>/",
     auth_views.PasswordResetConfirmView.as_view(),
     name="password_reset_confirm",
 ),
 path(
     "reset/done/",
     auth_views.PasswordResetCompleteView.as_view(),
     name="password_reset_complete",