Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tips for configuring PyDev/Eclipse for optimal Django template editing (sans Aptana)?

What I'm looking for is:

  • Full syntax highlighting including of {% Django template keywords %} and {{ Django template expressions }}
  • Additional editing conveniences specific to Django templates, analogous to the many features the PyDev editor has for .py source (e.g. the Command-1 quick fix for errors/warnings, PEP8 checking, and much more)
  • Suppression of extraneous warnings resulting form template code breaking normal HTML syntax, e.g. "Invalid text" warning for Django template code and "Resource not found" warning when referring to {{ STATIC_URL}}xyz.js etc.

I know that the Aptana Studio version of Eclipse has a Django specific template editor. This question is specifically for normal Eclipse/Pydev sans Aptana Studio.

like image 805
Ghopper21 Avatar asked Feb 20 '23 00:02

Ghopper21


1 Answers

Edit:

The current recommended way would be using LiClipse. See aswer at: https://stackoverflow.com/a/20837924/110451

Another option is using http://eclipse.kacprzak.org (or Aptana Studio 3, although it has a really old PyDev version bundled at this time).

like image 117
Fabio Zadrozny Avatar answered Apr 28 '23 03:04

Fabio Zadrozny