Let $\mathcal D=\{x\in \mathbb R^n\mid r<|x|<R\}$ and $u\in \mathcal C^1(\overline{\mathcal D})$. In particular, $u\in W^{1,p}(\mathcal D)$. I can prolonge $u$ on $W^{1,p}(\mathbb R^d)$ by $\hat u\in W^{1,p}(\mathbb R^d)$ s.t. $\hat u|_{\mathcal D}=u$, $$\|\hat u\|_{L^p(\mathbb R^d)}\leq C\|u\|_{L^p(\mathcal D)}\quad \text{and}\quad \|u\|_{W^{1,p}(\mathbb R^d)}\leq C\|u\|_{L^p(\mathcal D)}.$$
Now my teacher said that we also have $$\|\hat u\|_{L^q(\mathbb R^d)}\leq C\|u\|_{L^q(\mathcal D)},$$ and I didn't see any such theorem, so I have doubt about it. So is it really true ? And if yes, were can I find a proof ? And if no, do you have a counter-example ?
Context
The prblem is the following one :
$$\frac{1}{r}=\frac{a}{p}+\frac{1-a}{q},$$ $p>1$, $q\geq 1$ and $a\in [0,1]$.
I know that for $u\in \mathcal C^1(\mathbb R^d)$ there is $C$ independent of $u$ s.t. $$\|u\|_{L^r(\mathbb R^d)}\leq C\|\nabla u\|_{L^p(\mathbb R^d)}^a\|u\|_{L^q(\mathbb R^d)}^{1-a}.$$
Now, I want to prove that if $u\in \mathcal C^1(\overline{\mathcal D})$ there is $C$ independent of $u$ s.t. $$\|u-\bar u\|_{L^r(\mathcal D)}\leq C\|\nabla u\|_{L^p(\mathcal D)}\|u-\bar u\|_{L^q(\mathcal D)}.$$
So since $u-\bar u\in \mathcal C^1(\mathcal D)$, it's also in $W^{1,p}(\mathcal D)$. Let $\hat u\in W^{1,p}(\mathbb R^d)$ the prolongement of $u-\bar u$ s.t. $$\hat u|_{\mathcal D}=u-\bar u,\quad \|\hat u\|_{L^p(\mathbb R^d)}\leq C\|u-\bar u\|_{L^p(\mathcal D)}\quad \text{and}\quad \|\hat u\|_{W^{1,p}(\mathbb R^d)}\leq C\|u-\bar u\|_{W^{1,p}(\mathcal D)}.$$
Now, (using Poincaré's inequality) I have that
$$\|u-\bar u\|_{L^r(\mathcal D)}\leq \|\hat u\|_{L^r(\mathbb R^d)}\leq C\|\nabla u\|_{L^p(\mathcal D)}\|^a\|\hat u\|_{L^q(\mathbb R^d)}^{1-a}.$$
Now, my teacher say's that $$\|\hat u\|_{L^q(\mathbb R^d)}\leq C\|u-\bar u\|_{L^q(\mathcal D)},$$ hold. But I don't understand why, and I didn't see such a theorem in any books I read or in the internet. So I want to be sure about that it really hold, and if not, to have a counter-example.