Skip to content

build(test-django-debug-toolbar): Migrate to uv and pyproject.toml#16

Merged
ericapisani merged 1 commit into
mainfrom
PY-2443-test-django-debug-toolbar
May 21, 2026
Merged

build(test-django-debug-toolbar): Migrate to uv and pyproject.toml#16
ericapisani merged 1 commit into
mainfrom
PY-2443-test-django-debug-toolbar

Conversation

@ericapisani

Copy link
Copy Markdown
Member

Summary

  • Replace pip/requirements.txt with uv/pyproject.toml for dependency management
  • Update run.sh to use uv run instead of manual venv creation and pip install
  • Remove legacy requirements.txt

Refs PY-2443

Test plan

  • Verify pyproject.toml includes all dependencies from the original requirements.txt
  • Verify run.sh uses uv run
  • Verify requirements.txt is removed

🤖 Generated with Claude Code

Replace pip/requirements.txt with uv/pyproject.toml for dependency
management. Update run.sh to use uv run instead of manual venv
creation and pip install.

Refs PY-2443
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@linear-code

linear-code Bot commented May 21, 2026

Copy link
Copy Markdown

PY-2443

# Run Django application on localhost:8000
./manage.py runserver 0.0.0.0:8000
#gunicorn movie_search.project.asgi:application -k uvicorn.workers.UvicornWorker No newline at end of file
uv run ./manage.py runserver 0.0.0.0:8000

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The run.sh script calls ./manage.py from the wrong directory. It needs to change into the mysite subdirectory before executing the command.
Severity: HIGH

Suggested Fix

Update the script to change the current directory to mysite before running the manage.py command. A similar project uses cd mysite && uv run python ./manage.py runserver 0.0.0.0:8000 && cd .. which would resolve the issue.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: test-django-debug-toolbar/run.sh#L8

Potential issue: The `run.sh` script attempts to execute `uv run ./manage.py runserver
0.0.0.0:8000` from the `test-django-debug-toolbar/` directory. However, the `manage.py`
file is actually located within the `test-django-debug-toolbar/mysite/` subdirectory.
Because the path is incorrect, the script will fail at runtime with a 'No such file or
directory' error when it tries to find `manage.py`.

Did we get this right? 👍 / 👎 to inform future reviews.

@ericapisani ericapisani merged commit 35c46e0 into main May 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant