Powered by Cookiecutter, inspired by Cookiecutter Django, Cookiecutter Django Hexagonal Architecture is a framework for quickly driving production-ready Django projects using hexagonal architecture.
- For Django 4.2
- Works with Python 3.10
- 12-Factor based settings via django-environ
- Docker support using docker-compose for development
Let's pretend you want to create a Django project called "redditclone". Rather than using startproject and then editing the results to include your name, email, and various configuration issues that always get forgotten until the worst possible moment, get cookiecutter to do all the work.
First, get Cookiecutter. Trust me, it's awesome:
pip install "cookiecutter>=1.7.0"
Now run it against this repo:
cookiecutter https://github.com/serivt/cookiecutter-django-hexagonal-architecture
Enter the project and take a look around, and create a git repo and push it there:
cd reddit/
ls
git init
git add .
git commit -m "first awesome commit"
git remote add origin git@github.com:pydanny/redditclone.git
git push -u origin main