i tryed to deploy the same template to different namespaces and get template_name must be unique.
I searched little bit in your repository and a found a problem in the database migrations for sqlite and postgres:
in the create_tempalte_tables.sql file. the name is also unique as in combination with the namespace.
There are new migrations needed to remove the uniquness of the template_name