URL:

re_path('edit_teacher-(\d+).html', views.handle_edit_teacher),

HTML: 
 <a href='/edit_teacher-{{ nid }}'> Views:  
  def handle_edit_teacher(request, nid):  
     pass
05-04 06:21