Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (57 loc) · 1.46 KB
/
Copy pathMakefile
File metadata and controls
78 lines (57 loc) · 1.46 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
PYTHON=uv run python
MANAGE=manage.py
run:
$(PYTHON) $(MANAGE) runserver
run-tailwind-setup:
$(PYTHON) $(MANAGE) tailwind setup
run-server-tailwind:
$(PYTHON) $(MANAGE) tailwind runserver
run-tailwind-watch:
$(PYTHON) $(MANAGE) tailwind watch
run-tailwind-build:
$(PYTHON) $(MANAGE) tailwind build
run-gunicorn:
uv run gunicorn config.wsgi:application -b 0.0.0.0:8000
setup-db:
$(PYTHON) $(MANAGE) makemigrations
$(PYTHON) $(MANAGE) migrate
migrate:
$(PYTHON) $(MANAGE) migrate
check:
$(PYTHON) $(MANAGE) check
shell:
$(PYTHON) $(MANAGE) shell
test:
$(PYTHON) $(MANAGE) test
collectstatic:
$(PYTHON) $(MANAGE) collectstatic --noinput
createcachetable:
$(PYTHON) $(MANAGE) createcachetable
run-pre-commit:
uv run pre-commit run --all-files
run-ruff:
uv run ruff check . && \
uv run ruff format .
run-ruff-fix:
uv run ruff check --fix . && \
uv run ruff format .
install:
uv sync
install-dev:
uv sync --dev
clear-data:
$(PYTHON) $(MANAGE) flush --noinput
db-reset:
$(PYTHON) $(MANAGE) reset_db
$(PYTHON) $(MANAGE) makemigrations
$(PYTHON) $(MANAGE) migrate
$(PYTHON) $(MANAGE) populate_content
$(PYTHON) $(MANAGE) populate_jobs
$(PYTHON) $(MANAGE) populate_events
DJANGO_SUPERUSER_USERNAME=admin \
DJANGO_SUPERUSER_EMAIL=admin@example.com \
DJANGO_SUPERUSER_PASSWORD=admin123 \
$(PYTHON) $(MANAGE) createsuperuser --noinput
clean:
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete