forked from informed-governance-project/NISINP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
SHELL := /bin/bash
# target: all - Default target. Does nothing.
all:
@echo "Hello $(LOGNAME), nothing to do by default."
@echo "Try 'make help'"
help:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
activate:
poetry shell
run:
python manage.py runserver
migration:
python manage.py makemigrations
migrate:
python manage.py migrate
superuser:
python manage.py createsuperuser
models:
python manage.py graph_models governanceplatform incidents --pydot -g -o docs/_static/app-models.png
openapi:
python manage.py spectacular --format openapi > docs/_static/openapi.yml
generatepot:
python manage.py makemessages -a --keep-pot
update:
npm ci
poetry install --only main
python manage.py collectstatic
python manage.py compilemessages
python manage.py migrate
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete