Skip to content

Commit 5f7ce6a

Browse files
committed
fix 'no module named django'
1 parent 2ea92d2 commit 5f7ce6a

File tree

2 files changed

+7
-28
lines changed

2 files changed

+7
-28
lines changed

Makefile

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
11
install:
22
uv sync
33

4-
build:
5-
./build.sh
6-
7-
lint:
8-
ruff check .
9-
10-
#migrate:
11-
# uv run python manage.py migrate
4+
migrate:
5+
uv run python3 manage.py migrate
126

137
start:
14-
cd code && uv run manage.py runserver 0.0.0.0:3000
8+
uv run manage.py runserver 0.0.0.0:8000
159

1610
test:
17-
pytest
18-
19-
render-start:
20-
uv run gunicorn task_manager.wsgi:application
21-
11+
uv run python3 manage.py test

build.sh

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
#!/usr/bin/env bash
2-
set -e
2+
curl -LsSf https://astral.sh/uv/install.sh | sh
3+
source $HOME/.local/bin/env
34

4-
# Устанавливаем uv (если ещё не установлен)
5-
if ! command -v uv >/dev/null 2>&1; then
6-
curl -LsSf https://astral.sh/uv/install.sh | sh
7-
fi
8-
9-
# Добавляем ~/.local/bin в PATH, если там установлен uv
10-
export PATH=$HOME/.local/bin:$PATH
11-
12-
# Активируем виртуальное окружение
13-
source .venv/bin/activate
14-
15-
# Запускаем make install и make migrate
16-
make install
5+
make install

0 commit comments

Comments
 (0)