diff --git a/Pipfile b/Pipfile index 9025785..19bd1d4 100644 --- a/Pipfile +++ b/Pipfile @@ -20,7 +20,7 @@ django-filter = ">=2.3.0" django-guardian = ">=2.3.0" [requires] -python_version = "3.8" +python_version = "3.9" [pipenv] allow_prereleases = true diff --git a/makefile b/makefile index b9b8ef9..937aad0 100644 --- a/makefile +++ b/makefile @@ -8,8 +8,7 @@ help: ## Show this help .PHONY: env env: ## Install pipenv - pip3 install pipenv - pipenv shell --python 3.8 + pipenv shell --python 3.9 .PHONY: install install: env ## Make venv and install requirements @@ -18,15 +17,15 @@ install: env ## Make venv and install requirements pre-commit autoupdate migrate: ## Make and run migrations - $(PYTHON) manage.py makemigrations - $(PYTHON) manage.py migrate + pipenv run python manage.py makemigrations + pipenv run python manage.py migrate .PHONY: test test: ## Run tests - $(PYTHON) $(APP_DIR)/manage.py test application --verbosity=0 --parallel --failfast + pipenv run python manage.py test application --verbosity=0 --parallel --failfast .PHONY: run run: ## Run the Django server - $(PYTHON) $(APP_DIR)/manage.py runserver + pipenv run python manage.py runserver start: install migrate run ## Install requirements, apply migrations, then start development server