I have learned the calculus of variations in my previous semester, and now we are studying classical mechanics. What I found is that there is lots of lack of rigor in Lagrangian mechanics in comparison to the calculus of variations.
For example, the least action principle or Hamilton's principle is stated as:
Every mechanical system is characterised by a definite function $\mathcal{L}(q_1,..,q_n,\dot{q}_1,...,\dot{q}_n,t) $ or briefly $\mathcal{L}(q,\dot{q},t)$, and the motion of the system in such that a certain condition is satisfied.
Let the system occupy, at the instants $t_1$ and $t_2$, positions defined by two sets of values of the co-ordinates,$q^{(1)}$ and $q^{(2)}$. Then the condition is that the system moves between these positions in such a way that the integral \begin{equation}\label{key} S = \int_{t_1}^{t_2}\mathcal{L}(q,\dot{q},t)dt \end{equation}
takes the least possible value. The function $\mathcal{L}$ is called the Lagrangian of the system concerned, and the integral is called the action.
But here you see they didn't make any restriction on $\mathcal{L}$, neither they say it should by continuous nor the functional $S$ should be differentiable, and without these restriction they actually derive the Euler-Lagrange equation.
So the question is: Is there any restriction on the action (functional) or on the Lagrangian? If not, are there examples where the principle is valid but the Euler-Lagrange equation is not? If yes, is it right to specify them in principle?