# includes...
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('clinic.urls'), namespace='clinic'), # for example.com/<something> where "something" part is gonna be searched in /clinic/urls.py
path('', include('doctors.urls'), namespace='doctor'), # for example.com/<something> where "something" part is gonna be searched in /doctors/urls.py
]
]# includes...
urlpatterns = [
path('newclinic', views.NewClinic.as_view(), name='newclinic'), # you can resolve it's url by 'clinic:newclinic', e.g. in templates
path('<str:cliniclabel>', views.ClinicDetail.as_view(), name='detail'), # for example.com/clinic_label (keep in mind the problem of name uniqueness), resolved by 'clinic:detail' with label parameter
path('<str:cliniclabel>/<str:cliniclabel>', views.ClinicInClinic.as_view(), name='cc'), # example.com/clinic_label/clinic_label (clinic:cc clinic1_label clinic2_label), keep in mind that combining those in one view may be a bit tricky...
path('<str:cliniclabel>/doctors', views.ClinicDoctorsList.as_view(), name='doctors'), # example.com/clinic_label/doctors ('clinic:doctors' with label),
]
# includes...
urlpatterns = [
path('newdoctor', views.NewDoctor.as_view(), name='newdoctor'), # example.com/newdoctor // 'doctor:newdoctor'
path('<str:doctorlabel>', views.DoctorDetail.as_view(), name='detail'), # example.com/doctor_label //'doctor:detail' with label
]