Cookiecutter template repository for python projects
Go into the top-level directory where you want to create the project directory:
cd /path/to/your/top-level-directory
Run the following command to create a new Django project using the newest template version:
cookiecutter https://github.com/singularit-de/cc-python.git --directory django
# or
uvx cookiecutter https://github.com/singularit-de/cc-python.git --directory django
--checkout <tag/branch> option:cookiecutter https://github.com/singularit-de/cc-python.git --directory django --checkout v1.1.0
For Django projects, see the Django README for details on the template and the questions you’ll be asked during project creation.
Cookiecutter templates ensure consistency, standardization, and best practices across all Python projects at singularIT. They:
If you contribute to the template you mostly want to test your changes locally before pushing them to the remote repository to see that everything works as expected.
Go into the top-level directory where your “cc-python” repository lives:
cd /path/to/the/cc-python/top-level-directory
Run the following command to create a new Django project using the local template version:
cookiecutter cc-python --directory django
# or
uvx cookiecutter cc-python --directory django