44 lines
1005 B
Markdown
44 lines
1005 B
Markdown
# Suggested Commands
|
|
|
|
## Environment
|
|
```bash
|
|
source .venv/bin/activate
|
|
uv sync # Install/sync dependencies
|
|
```
|
|
|
|
## Development
|
|
```bash
|
|
python manage.py runserver # Run dev server (port 8000)
|
|
python manage.py shell # Django interactive shell
|
|
python manage.py createsuperuser # Create admin user
|
|
```
|
|
|
|
## Database
|
|
```bash
|
|
python manage.py makemigrations # Create migration files
|
|
python manage.py migrate # Apply migrations
|
|
python manage.py init_strategies # Initialize strategy data
|
|
```
|
|
|
|
## Testing
|
|
```bash
|
|
python manage.py test # Run Django tests
|
|
```
|
|
|
|
## Static Files
|
|
```bash
|
|
python manage.py collectstatic # Collect static files
|
|
```
|
|
|
|
## Docker
|
|
```bash
|
|
docker-compose up --build # Build and run with Docker
|
|
docker-compose down # Stop containers
|
|
```
|
|
|
|
## System Utilities (macOS/Darwin)
|
|
```bash
|
|
git status / git diff / git log # Git operations
|
|
ls / find / grep # File operations (prefer tool equivalents)
|
|
```
|