Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Create Tern projects for Django applications.

Project Description

Create Tern projects for Django applications.

Use awesome Tern auto-complete to develop your Django project with zero configuration.

Obviously all javascript code of application stored in application static folder. So we can write standard .tern-project file into application root if static folder exists. We can extend this project looking into application templates. We can add javascript from other applications or download external library from internet and make it accessible for tern.


You can install Emacs package from Melpa:

M-x package-install RET tern-django RET

Or you can install python script only from Pypi:

pip install tern-django


Setup your project variables and run tern-django command:

M-x setenv RET DJANGO_SETTINGS_MODULE RET project.settings
M-x setenv RET PYTHONPATH RET /home/user/path/to/project/
M-x tern-django

In case you install it as python package activate your development environment and run script.

. /path/to/project/virtual_env/bin/activate
export DJANGO_SETTINGS_MODULE=project.settings
export PYTHONPATH=/path/to/project


Attach output with debug option enable to any bag report. You can customize tern-django-debug variable within Emacs. Or directly run script with --debug option.

Known issues

If script randomly fails with following message:

OperationalError: database is locked

Check that your sqlite installation was compiled with HAVE_USLEEP flag enabled.

Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
tern_django-0.1.0.tar.gz (6.5 kB) Copy SHA256 Checksum SHA256 Source Dec 8, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting