Redirecting user to a page when there is no content?

Yes, get_template_part( 'content', 'none' ); will look for:

 1.content-none.php
 2.content.php

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