Update .clinerules: add guidelines for using UV with Django management commands

This commit is contained in:
pacnpal
2025-02-19 11:13:21 -05:00
parent 063398d220
commit 8c85b2afd4

View File

@@ -14,4 +14,17 @@ IMPORTANT: When a Python package is needed, only use UV to add it:
```bash ```bash
uv add <package> uv add <package>
``` ```
Do not attempt to install packages using any other method. 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 <command>
```
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.