A clean Poetry based Django project which includes CI
git clone https://github.com/maerteijn/django-bootstrap-project
pip install poetry
# This will also create a virtualenv when not activated
poetry install
source $(poetry env info --path)/bin/activate
flake8-black
, flake8-isort
and flake8-pylint
are installed too.
flake8
black src/
isort .
Pytest with coverage is default enabled
pytest
When you used a virtualenv yourself (mkvirtualenv or pyenv), you can just run the scripts below.
If not, activate the venv created with poetry:
source $(poetry env info --path)/bin/activate
Now you can acces manage.py
from anywhere as it is an installed script
manage.py migrate
manage.py createsuperuser
manage.py runserver
That would be just as simple as:
docker-compose up