add settings and pythonpath to debug command
Some checks are pending
release / build (push) Waiting to run
release / test (push) Waiting to run
release / release (push) Blocked by required conditions
test / generate-matrix (push) Waiting to run
lint / cargo-check (push) Waiting to run
lint / clippy (push) Waiting to run
lint / pre-commit (push) Waiting to run
lint / rustfmt (push) Waiting to run
test / Python , Django () (push) Blocked by required conditions
test / tests (push) Blocked by required conditions
zizmor 🌈 / zizmor latest via PyPI (push) Waiting to run

This commit is contained in:
Josh Thomas 2025-09-05 23:02:28 -05:00
parent 9e6974d705
commit fd0a1c160f

View file

@ -23,10 +23,10 @@ fn main() -> Result<()> {
let stdin = tmux.stdin.as_mut().context("Failed to get tmux stdin")?;
// Create session with editor
// Create session with editor, setting DJANGO_SETTINGS_MODULE and PYTHONPATH
writeln!(
stdin,
"new-session -d -s djls-debug 'nvim tests/project/djls_app/templates/djls_app/base.html'"
"new-session -d -s djls-debug 'DJANGO_SETTINGS_MODULE=djls_test.settings PYTHONPATH=tests/project:$PYTHONPATH nvim tests/project/djls_app/templates/djls_app/base.html'"
)?;
// Add devtools pane (20% width on the right)