Skip to content

Instantly share code, notes, and snippets.

@pcx
Created May 10, 2014 09:30
Show Gist options
  • Select an option

  • Save pcx/8b27ad401a60da8f0b17 to your computer and use it in GitHub Desktop.

Select an option

Save pcx/8b27ad401a60da8f0b17 to your computer and use it in GitHub Desktop.
.dir-locals.el for python-mode and Django
((nil . ((python-django-project-root
. "<path-to-project-root>")
(python-django-project-settings
. "<settings-module-name>")))
(python-mode . ((python-shell-interpreter . "python")
(python-shell-virtualenv-path
. "~/.virtualenvs/<virtualenv-name'")
(python-shell-interpreter-args
. "~/<project-path>/manage.py shell"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment