Possible to use pagename inside get_template_part?

I see no reason for this to not work technically, only you don’t need those single quotes around variable.

But practically why not just use page-{slug}.php or other template option from hierarchy?

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)