Fixing some stuff
This commit is contained in:
2
Pipfile
2
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
|
||||
|
||||
11
makefile
11
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
|
||||
|
||||
Reference in New Issue
Block a user