Skip to content

Instantly share code, notes, and snippets.

@abrookins
Created February 28, 2012 16:57
Show Gist options
  • Save abrookins/1933635 to your computer and use it in GitHub Desktop.
Save abrookins/1933635 to your computer and use it in GitHub Desktop.
A Sublime Text 2 Django project file with a test runner build system
{
"folders":
[
{
"path": "django_project_dir"
},
{
"path": "lib/python2.7"
}
],
"build_systems":
[
{
"name": "Run Tests",
"working_dir": "${project_path}/django_project_dir",
"env": {"PYTHONPATH": "/path/to/envs/env_name/django_project_dir:/path/to/envs/env_name/lib/python2.7/site-packages"},
"cmd": ["python", "manage.py", "test", "--noinput"]
}
]
}
@luuksommers
Copy link

Thanks for this!

For windows you can add /C/ for your C:\ drive to the env e.g.:
"PYTHONPATH": "/C/path/to/envs/env_name/django_project_dir:/C/path/to/envs/env_name/lib/python2.7/site-packages"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment