Skip to content

maerteijn/django-bootstrap-project

Repository files navigation

django-bootstrap-project

Django CI

A clean Poetry based Django project which includes CI

Install with poetry

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

Linting

flake8-black, flake8-isort and flake8-pylint are installed too.

flake8

Formatting

Black

black src/

Isort

isort .

Test

Pytest with coverage is default enabled

pytest

Run dev server

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

Run docker setup

That would be just as simple as:

docker-compose up

About

A boilerplate / bootstrap setup for a Django project

Resources

License

Stars

Watchers

Forks

Packages

No packages published