from django.urls import path, include # from django.contrib.auth.views import ( # PasswordResetView, # PasswordResetDoneView, # PasswordResetConfirmView, # PasswordResetCompleteView, # LoginView, # LogoutView, # ) from .views import ( profile, profile_single, admin_panel, profile_update, change_password, LecturerFilterView, StudentListView, staff_add_view, edit_staff, delete_staff, student_add_view, edit_student, delete_student, edit_student_program, ParentAdd, validate_username, register, render_lecturer_pdf_list, # new render_student_pdf_list, # new ) # from .forms import EmailValidationOnForgotPassword urlpatterns = [ path("", include("django.contrib.auth.urls")), path("admin_panel/", admin_panel, name="admin_panel"), path("profile/", profile, name="profile"), path("profile//detail/", profile_single, name="profile_single"), path("setting/", profile_update, name="edit_profile"), path("change_password/", change_password, name="change_password"), path("lecturers/", LecturerFilterView.as_view(), name="lecturer_list"), path("lecturer/add/", staff_add_view, name="add_lecturer"), path("staff//edit/", edit_staff, name="staff_edit"), path("lecturers//delete/", delete_staff, name="lecturer_delete"), path("students/", StudentListView.as_view(), name="student_list"), path("student/add/", student_add_view, name="add_student"), path("student//edit/", edit_student, name="student_edit"), path("students//delete/", delete_student, name="student_delete"), path( "edit_student_program//", edit_student_program, name="student_program_edit", ), path("parents/add/", ParentAdd.as_view(), name="add_parent"), path("ajax/validate-username/", validate_username, name="validate_username"), path("register/", register, name="register"), # paths to pdf path( "create_lecturers_pdf_list/", render_lecturer_pdf_list, name="lecturer_list_pdf" ), # new path( "create_students_pdf_list/", render_student_pdf_list, name="student_list_pdf" ), # new # path('add-student/', StudentAddView.as_view(), name='add_student'), # path('programs/course/delete//', course_delete, name='delete_course'), # Setting urls # path('profile//edit/', profileUpdateView, name='edit_profile'), # path('profile//change-password/', changePasswordView, name='change_password'), # ################################################################ # path('login/', LoginView.as_view(), name='login'), # path('logout/', LogoutView.as_view(), name='logout', kwargs={'next_page': '/'}), # path('password-reset/', PasswordResetView.as_view( # form_class=EmailValidationOnForgotPassword, # template_name='registration/password_reset.html' # ), # name='password_reset'), # path('password-reset/done/', PasswordResetDoneView.as_view( # template_name='registration/password_reset_done.html' # ), # name='password_reset_done'), # path('password-reset-confirm///', PasswordResetConfirmView.as_view( # template_name='registration/password_reset_confirm.html' # ), # name='password_reset_confirm'), # path('password-reset-complete/', PasswordResetCompleteView.as_view( # template_name='registration/password_reset_complete.html' # ), # name='password_reset_complete') # ################################################################ ]