Skip to content

Commit fd0a1c1

Browse files
add settings and pythonpath to debug command
1 parent 9e6974d commit fd0a1c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/djls-dev/src/bin/djls-tmux.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ fn main() -> Result<()> {
2323

2424
let stdin = tmux.stdin.as_mut().context("Failed to get tmux stdin")?;
2525

26-
// Create session with editor
26+
// Create session with editor, setting DJANGO_SETTINGS_MODULE and PYTHONPATH
2727
writeln!(
2828
stdin,
29-
"new-session -d -s djls-debug 'nvim tests/project/djls_app/templates/djls_app/base.html'"
29+
"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'"
3030
)?;
3131

3232
// Add devtools pane (20% width on the right)

0 commit comments

Comments
 (0)