<filename>aimsbackend/urls.py
from django.urls import path
from aimsbackend import views, HodViews, StaffViews, StudentViews
from aimsbackend.EditResultVIewClass import EditResultViewClass
from aimsbackend import views
from django.contrib.auth import views as auth_views
urlpatterns = [

    path('', views.ShowLoginPage, name="show_login"),
    path('logout/', views.logout_user, name="logout"),
    path('login/', views.doLogin, name="do_login"),


    path('reset-password/', auth_views.PasswordResetView.as_view(
        template_name="registration/forgot.html"), name='reset_passowrd'),
    path('reset-password-sent/', auth_views.PasswordResetDoneView.as_view(
        template_name="registration/password_reset_done.html"), name='password_reset_done'),

    path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(
        template_name="registration/password_reset_form.html"), name='password_reset_confirm'),

    path('reset-password-complete/', auth_views.PasswordResetCompleteView.as_view(
        template_name="registration/password_reset_complete.html"), name='password_reset_complete'),

    # Admin Views
    path('admin_home/', HodViews.admin_home, name="admin_home"),
    path('add_staff/', HodViews.add_staff, name="add_staff"),
    path('add_staff_save/', HodViews.add_staff_save, name="add_staff_save"),
    path('manage_staff/', HodViews.manage_staff, name="manage_staff"),
    path('edit_staff/<staff_id>/', HodViews.edit_staff, name="edit_staff"),
    path('edit_staff_save/', HodViews.edit_staff_save, name="edit_staff_save"),
    path('delete_staff/<staff_id>/', HodViews.delete_staff, name="delete_staff"),



    path('add_course/', HodViews.add_course, name="add_course"),
    path('add_course_save/', HodViews.add_course_save, name="add_course_save"),
    path('manage_course/', HodViews.manage_course, name="manage_course"),
    path('edit_course/<course_id>/', HodViews.edit_course, name="edit_course"),
    path('edit_course_save/', HodViews.edit_course_save, name="edit_course_save"),
    path('delete_course/<course_id>/',
         HodViews.delete_course, name="delete_course"),


    path('add_student/', HodViews.add_student, name="add_student"),
    path('add_student_save/', HodViews.add_student_save, name="add_student_save"),
    path('edit_student/<student_id>/', HodViews.edit_student, name="edit_student"),
    path('manage_student/', HodViews.manage_student, name="manage_student"),
    path('edit_student_save/', HodViews.edit_student_save,
         name="edit_student_save"),
    path('manage_student/', HodViews.manage_student, name="manage_student"),
    path('delete_student/<student_id>/',
         HodViews.delete_student, name="delete_student"),


    path('add_subject/', HodViews.add_subject, name="add_subject"),
    path('add_subject_save/', HodViews.add_subject_save, name="add_subject_save"),
    path('manage_subject/', HodViews.manage_subject, name="manage_subject"),
    path('edit_subject/<subject_id>/',
         HodViews.edit_subject, name="edit_subject"),
    path('edit_subject_save/', HodViews.edit_subject_save,
         name="edit_subject_save"),
    path('delete_subject/<subject_id>/',
         HodViews.delete_subject, name="delete_subject"),


    path('manage_session/', HodViews.manage_session, name="manage_session"),
    path('add_session/', HodViews.add_session, name="add_session"),
    path('add_session_save/', HodViews.add_session_save, name="add_session_save"),
    path('edit_session/<session_id>', HodViews.edit_session, name="edit_session"),
    path('edit_session_save/', HodViews.edit_session_save,
         name="edit_session_save"),
    path('delete_session/<session_id>/',
         HodViews.delete_session, name="delete_session"),


    path('add_session_save/', HodViews.add_session_save, name="add_session_save"),
    path('check_email_exist/', HodViews.check_email_exist, name="check_email_exist"),
    path('check_username_exist/', HodViews.check_username_exist,
         name="check_username_exist"),
    path('student_feedback_message/', HodViews.student_feedback_message,
         name="student_feedback_message"),
    path('student_feedback_message_replied/', HodViews.student_feedback_message_replied,
         name="student_feedback_message_replied"),
    path('staff_feedback_message/', HodViews.staff_feedback_message,
         name="staff_feedback_message"),
    path('staff_feedback_message_replied/', HodViews.staff_feedback_message_replied,
         name="staff_feedback_message_replied"),
    path('student_leave_view/', HodViews.student_leave_view,
         name="student_leave_view"),
    path('staff_leave_view/', HodViews.staff_leave_view, name="staff_leave_view"),
    path('student_approve_leave/<str:leave_id>',
         HodViews.student_approve_leave, name="student_approve_leave"),
    path('student_disapprove_leave/<str:leave_id>/',
         HodViews.student_disapprove_leave, name="student_disapprove_leave"),
    path('staff_disapprove_leave/<str:leave_id>/',
         HodViews.staff_disapprove_leave, name="staff_disapprove_leave"),
    path('staff_approve_leave/<str:leave_id>/',
         HodViews.staff_approve_leave, name="staff_approve_leave"),
    path('admin_view_attendance', HodViews.admin_view_attendance,
         name="admin_view_attendance"),
    path('admin_get_attendance_dates/', HodViews.admin_get_attendance_dates,
         name="admin_get_attendance_dates"),
    path('admin_get_attendance_student/', HodViews.admin_get_attendance_student,
         name="admin_get_attendance_student"),
    path('admin_profile/', HodViews.admin_profile, name="admin_profile"),
    path('admin_profile_save/', HodViews.admin_profile_save,
         name="admin_profile_save"),
    path('admin_send_notification_staff/', HodViews.admin_send_notification_staff,
         name="admin_send_notification_staff"),
    path('admin_send_notification_student/', HodViews.admin_send_notification_student,
         name="admin_send_notification_student"),
    path('send_student_notification/', HodViews.send_student_notification,
         name="send_student_notification"),
    path('send_staff_notification/', HodViews.send_staff_notification,
         name="send_staff_notification"),

    # Staff Views
    path('staff_home/', StaffViews.staff_home, name="staff_home"),
    path('staff_take_attendance/', StaffViews.staff_take_attendance,
         name="staff_take_attendance"),
    path('staff_update_attendance/', StaffViews.staff_update_attendance,
         name="staff_update_attendance"),
    path('get_students/', StaffViews.get_students, name="get_students"),
    path('get_attendance_dates', StaffViews.get_attendance_dates,
         name="get_attendance_dates"),
    path('get_attendance_student/', StaffViews.get_attendance_student,
         name="get_attendance_student"),
    path('save_attendance_data/', StaffViews.save_attendance_data,
         name="save_attendance_data"),
    path('save_updateattendance_data/', StaffViews.save_updateattendance_data,
         name="save_updateattendance_data"),
    path('staff_apply_leave/', StaffViews.staff_apply_leave,
         name="staff_apply_leave"),
    path('staff_apply_leave_save/', StaffViews.staff_apply_leave_save,
         name="staff_apply_leave_save"),
    path('staff_feedback/', StaffViews.staff_feedback, name="staff_feedback"),
    path('staff_feedback_save', StaffViews.staff_feedback_save,
         name="staff_feedback_save"),
    path('staff_profile/', StaffViews.staff_profile, name="staff_profile"),
    path('staff_profile_save', StaffViews.staff_profile_save,
         name="staff_profile_save"),
    path('staff_fcmtoken_save/', StaffViews.staff_fcmtoken_save,
         name="staff_fcmtoken_save"),
    path('staff_all_notification/', StaffViews.staff_all_notification,
         name="staff_all_notification"),
    path('staff_add_result/', StaffViews.staff_add_result, name="staff_add_result"),
    path('save_student_result', StaffViews.save_student_result,
         name="save_student_result"),
    path('edit_student_result/', EditResultViewClass.as_view(),
         name="edit_student_result"),
    path('fetch_result_student/', StaffViews.fetch_result_student,
         name="fetch_result_student"),

    # URSL for Student
    path('student_home/', StudentViews.student_home, name="student_home"),
    path('student_view_attendance/', StudentViews.student_view_attendance,
         name="student_view_attendance"),
    path('student_view_attendance_post/', StudentViews.student_view_attendance_post,
         name="student_view_attendance_post"),
    path('student_apply_leave/', StudentViews.student_apply_leave,
         name="student_apply_leave"),
    path('student_apply_leave_save/', StudentViews.student_apply_leave_save,
         name="student_apply_leave_save"),
    path('student_feedback/', StudentViews.student_feedback,
         name="student_feedback"),
    path('student_feedback_save/', StudentViews.student_feedback_save,
         name="student_feedback_save"),
    path('student_profile/', StudentViews.student_profile, name="student_profile"),
    path('student_profile_save/', StudentViews.student_profile_save,
         name="student_profile_save"),
    path('student_view_result/', StudentViews.student_view_result,
         name="student_view_result"),
    path('student_fcmtoken_save/', StudentViews.student_fcmtoken_save,
         name="student_fcmtoken_save"),
    path('student_all_notification/', StudentViews.student_all_notification,
         name="student_all_notification"),
]

<filename>aimsbackend/urls.py
from django.urls import path
from aimsbackend import views, HodViews, StaffViews, StudentViews
from aimsbackend.EditResultVIewClass import EditResultViewClass
from aimsbackend import views
from django.contrib.auth import views as auth_views
urlpatterns = [

    path('', views.ShowLoginPage, name="show_login"),
    path('logout/', views.logout_user, name="logout"),
    path('login/', views.doLogin, name="do_login"),


    path('reset-password/', auth_views.PasswordResetView.as_view(
        template_name="registration/forgot.html"), name='reset_passowrd'),
    path('reset-password-sent/', auth_views.PasswordResetDoneView.as_view(
        template_name="registration/password_reset_done.html"), name='password_reset_done'),

    path('reset/<uidb64>/<token>/', auth_views.PasswordResetConfirmView.as_view(
        template_name="registration/password_reset_form.html"), name='password_reset_confirm'),

    path('reset-password-complete/', auth_views.PasswordResetCompleteView.as_view(
        template_name="registration/password_reset_complete.html"), name='password_reset_complete'),

    # Admin Views
    path('admin_home/', HodViews.admin_home, name="admin_home"),
    path('add_staff/', HodViews.add_staff, name="add_staff"),
    path('add_staff_save/', HodViews.add_staff_save, name="add_staff_save"),
    path('manage_staff/', HodViews.manage_staff, name="manage_staff"),
    path('edit_staff/<staff_id>/', HodViews.edit_staff, name="edit_staff"),
    path('edit_staff_save/', HodViews.edit_staff_save, name="edit_staff_save"),
    path('delete_staff/<staff_id>/', HodViews.delete_staff, name="delete_staff"),



    path('add_course/', HodViews.add_course, name="add_course"),
    path('add_course_save/', HodViews.add_course_save, name="add_course_save"),
    path('manage_course/', HodViews.manage_course, name="manage_course"),
    path('edit_course/<course_id>/', HodViews.edit_course, name="edit_course"),
    path('edit_course_save/', HodViews.edit_course_save, name="edit_course_save"),
    path('delete_course/<course_id>/',
         HodViews.delete_course, name="delete_course"),


    path('add_student/', HodViews.add_student, name="add_student"),
    path('add_student_save/', HodViews.add_student_save, name="add_student_save"),
    path('edit_student/<student_id>/', HodViews.edit_student, name="edit_student"),
    path('manage_student/', HodViews.manage_student, name="manage_student"),
    path('edit_student_save/', HodViews.edit_student_save,
         name="edit_student_save"),
    path('manage_student/', HodViews.manage_student, name="manage_student"),
    path('delete_student/<student_id>/',
         HodViews.delete_student, name="delete_student"),


    path('add_subject/', HodViews.add_subject, name="add_subject"),
    path('add_subject_save/', HodViews.add_subject_save, name="add_subject_save"),
    path('manage_subject/', HodViews.manage_subject, name="manage_subject"),
    path('edit_subject/<subject_id>/',
         HodViews.edit_subject, name="edit_subject"),
    path('edit_subject_save/', HodViews.edit_subject_save,
         name="edit_subject_save"),
    path('delete_subject/<subject_id>/',
         HodViews.delete_subject, name="delete_subject"),


    path('manage_session/', HodViews.manage_session, name="manage_session"),
    path('add_session/', HodViews.add_session, name="add_session"),
    path('add_session_save/', HodViews.add_session_save, name="add_session_save"),
    path('edit_session/<session_id>', HodViews.edit_session, name="edit_session"),
    path('edit_session_save/', HodViews.edit_session_save,
         name="edit_session_save"),
    path('delete_session/<session_id>/',
         HodViews.delete_session, name="delete_session"),


    path('add_session_save/', HodViews.add_session_save, name="add_session_save"),
    path('check_email_exist/', HodViews.check_email_exist, name="check_email_exist"),
    path('check_username_exist/', HodViews.check_username_exist,
         name="check_username_exist"),
    path('student_feedback_message/', HodViews.student_feedback_message,
         name="student_feedback_message"),
    path('student_feedback_message_replied/', HodViews.student_feedback_message_replied,
         name="student_feedback_message_replied"),
    path('staff_feedback_message/', HodViews.staff_feedback_message,
         name="staff_feedback_message"),
    path('staff_feedback_message_replied/', HodViews.staff_feedback_message_replied,
         name="staff_feedback_message_replied"),
    path('student_leave_view/', HodViews.student_leave_view,
         name="student_leave_view"),
    path('staff_leave_view/', HodViews.staff_leave_view, name="staff_leave_view"),
    path('student_approve_leave/<str:leave_id>',
         HodViews.student_approve_leave, name="student_approve_leave"),
    path('student_disapprove_leave/<str:leave_id>/',
         HodViews.student_disapprove_leave, name="student_disapprove_leave"),
    path('staff_disapprove_leave/<str:leave_id>/',
         HodViews.staff_disapprove_leave, name="staff_disapprove_leave"),
    path('staff_approve_leave/<str:leave_id>/',
         HodViews.staff_approve_leave, name="staff_approve_leave"),
    path('admin_view_attendance', HodViews.admin_view_attendance,
         name="admin_view_attendance"),
    path('admin_get_attendance_dates/', HodViews.admin_get_attendance_dates,
         name="admin_get_attendance_dates"),
    path('admin_get_attendance_student/', HodViews.admin_get_attendance_student,
         name="admin_get_attendance_student"),
    path('admin_profile/', HodViews.admin_profile, name="admin_profile"),
    path('admin_profile_save/', HodViews.admin_profile_save,
         name="admin_profile_save"),
    path('admin_send_notification_staff/', HodViews.admin_send_notification_staff,
         name="admin_send_notification_staff"),
    path('admin_send_notification_student/', HodViews.admin_send_notification_student,
         name="admin_send_notification_student"),
    path('send_student_notification/', HodViews.send_student_notification,
         name="send_student_notification"),
    path('send_staff_notification/', HodViews.send_staff_notification,
         name="send_staff_notification"),

    # Staff Views
    path('staff_home/', StaffViews.staff_home, name="staff_home"),
    path('staff_take_attendance/', StaffViews.staff_take_attendance,
         name="staff_take_attendance"),
    path('staff_update_attendance/', StaffViews.staff_update_attendance,
         name="staff_update_attendance"),
    path('get_students/', StaffViews.get_students, name="get_students"),
    path('get_attendance_dates', StaffViews.get_attendance_dates,
         name="get_attendance_dates"),
    path('get_attendance_student/', StaffViews.get_attendance_student,
         name="get_attendance_student"),
    path('save_attendance_data/', StaffViews.save_attendance_data,
         name="save_attendance_data"),
    path('save_updateattendance_data/', StaffViews.save_updateattendance_data,
         name="save_updateattendance_data"),
    path('staff_apply_leave/', StaffViews.staff_apply_leave,
         name="staff_apply_leave"),
    path('staff_apply_leave_save/', StaffViews.staff_apply_leave_save,
         name="staff_apply_leave_save"),
    path('staff_feedback/', StaffViews.staff_feedback, name="staff_feedback"),
    path('staff_feedback_save', StaffViews.staff_feedback_save,
         name="staff_feedback_save"),
    path('staff_profile/', StaffViews.staff_profile, name="staff_profile"),
    path('staff_profile_save', StaffViews.staff_profile_save,
         name="staff_profile_save"),
    path('staff_fcmtoken_save/', StaffViews.staff_fcmtoken_save,
         name="staff_fcmtoken_save"),
    path('staff_all_notification/', StaffViews.staff_all_notification,
         name="staff_all_notification"),
    path('staff_add_result/', StaffViews.staff_add_result, name="staff_add_result"),
    path('save_student_result', StaffViews.save_student_result,
         name="save_student_result"),
    path('edit_student_result/', EditResultViewClass.as_view(),
         name="edit_student_result"),
    path('fetch_result_student/', StaffViews.fetch_result_student,
         name="fetch_result_student"),

    # URSL for Student
    path('student_home/', StudentViews.student_home, name="student_home"),
    path('student_view_attendance/', StudentViews.student_view_attendance,
         name="student_view_attendance"),
    path('student_view_attendance_post/', StudentViews.student_view_attendance_post,
         name="student_view_attendance_post"),
    path('student_apply_leave/', StudentViews.student_apply_leave,
         name="student_apply_leave"),
    path('student_apply_leave_save/', StudentViews.student_apply_leave_save,
         name="student_apply_leave_save"),
    path('student_feedback/', StudentViews.student_feedback,
         name="student_feedback"),
    path('student_feedback_save/', StudentViews.student_feedback_save,
         name="student_feedback_save"),
    path('student_profile/', StudentViews.student_profile, name="student_profile"),
    path('student_profile_save/', StudentViews.student_profile_save,
         name="student_profile_save"),
    path('student_view_result/', StudentViews.student_view_result,
         name="student_view_result"),
    path('student_fcmtoken_save/', StudentViews.student_fcmtoken_save,
         name="student_fcmtoken_save"),
    path('student_all_notification/', StudentViews.student_all_notification,
         name="student_all_notification"),
]

# Admin Views # Staff Views # URSL for Student