$\newcommand{\d}{\,\mathrm{d}}\newcommand{\b}{\mathcal{B}}$Cheating slightly, we can re-express the integral as:
$$\int_0^1x^{-1/2}(1-x)^{-1/2}\d x=\b\left(\frac{1}{2},\frac{1}{2}\right)$$
Where $\b$ is the Beta function, which satisfies for positive $x,y$ the relation:
$$\b(x,y)=\frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}$$
Where $\Gamma$ is the Gamma function.
Then your integral is:
$$\frac{(\Gamma(1/2))^2}{\Gamma(1)}=\pi$$
But maybe you are not familiar with this. I leave these for further reading.
Let's more elementarily evaluate this:
Insert $x=\sin^2u$ to find: $$\int_0^{\pi/2}\frac{2\sin x\cos x}{\sqrt{\sin^2x}\sqrt{1-\sin^2x}}\d x=2\int_0^{\pi/2}\frac{\sin x\cos x}{\sin x\cos x}\d x=2\int_0^{\pi/2}1\d x=\pi$$
These substitutions are ok for the interval $(0,\pi/2)$, and what's more, if you use the $\epsilon-\delta$ idea of evaluating this integral on $(\epsilon,1-\delta)$, you can use these substitutions to see that the integral is convergent, so the fact that division by $\sin 0,\cos\pi/2$ features doesn't matter:
Let $\epsilon,\delta\in(0,0.5)$ be fixed. $$\int_\epsilon^{1-\delta}x^{-1/2}(1-x)^{-1/2}\d x=\int_{\arcsin\sqrt{\epsilon}}^{\arcsin\sqrt{1-\delta}}2\d x=2(\arcsin\sqrt{1-\delta}-\arcsin\epsilon)$$
Independently of how $\epsilon,\delta\to0^+$, we see, by continuity of $\arcsin,\sqrt{}$ in these domains, that we get $2\arcsin 1=\pi$. Since this result is independent of the path/rate of approach, the integral is convergent and equal to $\pi$.