Fixing some stuff

This commit is contained in:
Fundor333
2020-10-27 21:17:26 +01:00
parent a47c01d8e6
commit c7449fcf06
2 changed files with 6 additions and 7 deletions

View File

@@ -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

View File

@@ -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