Reproducible Django starter using pyenv + virtualenv.
- Homebrew + pyenv installed
- Python 3.12.5 installed via pyenv:
pyenv install -s 3.12.5 - Set local version:
pyenv local 3.12.5
git clone <your-repo-url>
cd django-starter
python3 -m virtualenv .venv
./.venv/bin/pip install -r requirements-dev.txt
cp .env.example .envmake migrate
make dev
# open http://127.0.0.1:8000/ -> {"status":"ok"}- Edit
requirements.inandrequirements-dev.in, then:
make freeze.python-versionpins the Python version for pyenv.- Use
pyenv install -s 3.12.5 && pyenv local 3.12.5to match the project.