From 8c85b2afd47b8b04efc3b2bd4ffd885b85e45441 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Wed, 19 Feb 2025 11:13:21 -0500 Subject: [PATCH] Update .clinerules: add guidelines for using UV with Django management commands --- .clinerules | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.clinerules b/.clinerules index a40799dc..50331b6e 100644 --- a/.clinerules +++ b/.clinerules @@ -14,4 +14,17 @@ IMPORTANT: When a Python package is needed, only use UV to add it: ```bash uv add ``` -Do not attempt to install packages using any other method. \ No newline at end of file +Do not attempt to install packages using any other method. + +## Django Management Commands +IMPORTANT: When running any Django manage.py commands (migrations, shell, etc.), always use UV: +```bash +uv run manage.py +``` +This applies to all management commands including but not limited to: +- Making migrations: `uv run manage.py makemigrations` +- Applying migrations: `uv run manage.py migrate` +- Creating superuser: `uv run manage.py createsuperuser` +- Starting shell: `uv run manage.py shell` + +NEVER use `python manage.py` or `uv run python manage.py`. Always use `uv run manage.py` directly. \ No newline at end of file