GithubHelp home page GithubHelp logo

plumpmath / tern-django Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 88 KB

Create tern projects for django applications.

License: GNU General Public License v3.0

Emacs Lisp 18.00% Python 77.83% Shell 1.56% HTML 2.54% JavaScript 0.08%

tern-django's Introduction

Tern Django

Build Status Coverage Status Requirements Status Melpa Melpa Stable

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.

Installation

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

Usage

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 tern_django.py script.

:

. /path/to/project/virtual_env/bin/activate

export DJANGO_SETTINGS_MODULE=project.settings

export PYTHONPATH=/path/to/project

tern_django.py

Contributing

Attach tern_django.py 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.

tern-django's People

Contributors

proofit404 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.