In Riemannian geometry, a constant curvature space means that the curvature tensor is of the form $$ R_{ijkl}=k(g_{ik}g_{jl}-g_{il}g_{jk}), $$ where $k$ is a constant. This equivalently means that the sectional curvature is constant (unlike for the Riemann tensor, it is meaningful for the sectional curvature to be constant).
In two dimensions, the curvature tensor is always of the form $$ R_{ijkl}=\frac{R}{2}(g_{ik}g_{jl}-g_{il}g_{jk}), $$ so in this case the space is constant curvature if and only if the scalar curvature $R$ is constant. But this is only in two dimensions.
The condition $\nabla_mR_{ijkl}=0$ is strictly weaker. Such spaces are called locally symmetric.
EDIT:
It appears that OP is rather confused regarding the concepts of symmetry in Riemannian geometry. Let's overview some terms:
- Constant curvature space
- Locally maximally symmetric space
- Maximally symmetric space
- Locally symmetric space
- Symmetric space
These are all a priori different concepts.
Constant curvature spaces: As mentioned, a (pseudo-)Riemannian manifold $(M,g)$ is a constant curvature space if the sectional curvature function $\mathrm{Sec}$ is constant. This is a function on the 2-Grassmannian bundle of $M$, rather than $M$ itself (technically, for pseudo-Riemannian metrics, it is a function on an open subset of the Grassmannian that consists of those 2-planes which are nondegenerate with respect to the metric), i.e. it associates a value $\mathrm{Sec}(\Delta)$ to each $2$-plane $\Delta\le T_pM$.
A completely equivalent characterization is that the Riemann curvature tensor has the form $$ R_{ijkl}=k\left( g_{ik}g_{jl}-g_{il}g_{jk}\right) $$with $k$ a constant.
(Locally) maximally symmetric spaces: Truthfully, this terminology seems to be more "classical" and don't often appear in the modern literature on the subject, so it is possible that I get something wrong in the local-global distinction here.
I think it is relatively safe to say that a pseudo-Riemannian space $(M,g)$ is locally maximally symmetric if each point $p\in M$ has some neighborhood $U\subseteq M$ such that on $U$, there exist the maximal number $m(m+1)/2$ (where $m=\dim M$) of linearly independent Killing vector fields.
Then $(M,g)$ is maximally symmetric if its isometry group (which is necessarily a Lie group; Myers--Steenrod theorem and its pseudo-Riemannian generalization) has the maximum allowed dimension $m(m+1)/2$. I think this is equivalent to $M$ admitting $m(m+1)/2$ global, linearly independent Killing vector fields, but I am not absolutely sure.
Local maximal symmetry is equivalent with being constant curvature. Basically, one can use the Frobenius integrability theorem to show that the completely integrability of the Killing equation implies that the curvature tensor is of the form $R_{ijkl}=k(g_{ik}g_{jl}-g_{il}g_{jk})$ given above (with $k$ a constant), and conversely, if the curvature tensor has this form, then the integrability conditions for the Killing equation are satisfied identically (a somewhat unrigorous version of this argument can be found in Weinberg: Gravitation and Cosmology, but it can easily be rigourified). However the Frobenius theorem concerns itself only with local existence so I think this only establishes equivalence with local maximal symmetry.
(Locally) symmetric spaces: Given a point $p$ in $(M,g)$, a geodesic symmetry is a local diffeomorphism $f:U\rightarrow U$ ($U$ is a neighborhood of $p$) such that $f(p)=p$ (it fixes $p$) and $f(\gamma(t))=\gamma(-t)$ for any geodesic $\gamma$ with $\gamma(0)=p$.
Then $(M,g)$ is locally symmetric if each point has a geodesic symmetry, and each geodesic symmetry is a local isometry (it does not need to be, normally!). The space is (globally) symmetric if in addition, each geodesic symmetry extends to a global isometry of $(M,g)$.
A standard result is that $(M,g)$ is locally symmetric if and only if $\nabla_m R_{ijkl}=0$ ($m$ here is a free index, not the dimension of $M$!), i.e. the curvature tensor is parallel/covariant constant.
This condition is strictly weaker than having constant curvature. Every constant curvature space is locally symmetric, but there are locally symmetric spaces that do not have constant curvature.
python
package should help a lot. $\endgroup$